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

Woebbeking at web dot de gcc-bugzilla@gcc.gnu.org
Fri Mar 15 09:25:00 GMT 2013


--- Comment #24 from André Wöbbeking <Woebbeking at web dot de> 2013-03-15 09:25:02 UTC ---
OK, I read some explanations in the duplicates but still don't know why this
should be valid code. IMO it makes no sense to write A:A:A:B and given the
facts that
1) people don't write this intentionally
2) people expect this to be invalid (see number of duplicates)
3) some other compiler don't compile this
couldn't you at least give us a warning (e. g. with -pedantic)?

More information about the Gcc-bugs mailing list