[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#118087: operation behavior not a bug...



> > See PR#3747 at http://gcc.gnu.org/cgi-bin/gnatsweb.pl
> > 
> > The fix is to not use unsigned int as a type in an overridden []
> > operator. changing the [] operator to have type int works.
> 
> That fix did allow ftpgrab to compile under hppa, but I'm baffled
> as to how this can not be considered a bug.
> 
> Ignoring the question of whether unsigned int should be a valid
> type, how is it that two different header files with the same
> declaration for operator[] compile differently?

As you can see from PR#3747, this apparently comes from ptrdiff_t
being signed on some architecture and unsigned on another. What part
of the explanation in this PR is unclear to you?

Regards,
Martin



Reply to: