This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ typedef redefinitions and templates


"Martin v. Loewis" wrote:
> 
> > This is in violation of ISO C++ section 7.1.3/2 [dcl.typedef].  In this case,
> > it is not known until template instantiation time whether the code is legal
> > or not.
> 
> Thanks for your bug report. I've put it into GNATS.

An additional note: There may be a defect report with the C++ committee
which would forbid repeated typedef's in classes so that the current gcc
behaviour would be correct.

Jens Maurer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]