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]
Other format: [Raw text]

[Bug c++/11764] [DR147] g++ does not treat injected class name correctly.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11764

--- Comment #26 from Andrà WÃbbeking <Woebbeking at web dot de> 2013-03-15 13:45:50 UTC ---
(In reply to comment #25)
> (In reply to comment #24)
> > 3) some other compiler don't compile this
> 
> Which?  Recent versions of EDG and clang both accept the testcase in comment
> 22.

MSVC 2010

In another duplicate ICC 6 was mentioned.

> > couldn't you at least give us a warning (e. g. with -pedantic)?
> 
> -pedantic means "strictly enforce the standard"; since the standard says that
> the testcase in comment 22 is well-formed, -pedantic should not complain about
> it.  Someone could add another warning flag to warn about this,

Yep, that is probably the better solution.


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