This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11764] [DR147] g++ does not treat injected class name correctly.
- From: "Woebbeking at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Mar 2013 13:45:50 +0000
- Subject: [Bug c++/11764] [DR147] g++ does not treat injected class name correctly.
- Auto-submitted: auto-generated
- References: <bug-11764-4@http.gcc.gnu.org/bugzilla/>
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.