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

Woebbeking at web dot de gcc-bugzilla@gcc.gnu.org
Wed Feb 20 16:33:00 GMT 2013


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

--- Comment #22 from André Wöbbeking <Woebbeking at web dot de> 2013-02-20 16:31:47 UTC ---
Hi,

shouldn't

struct A
{
    struct B {};
};

int main()
{
    A::A::B b;
}

fail to compile? It compiles with 4.6 and 4.7.


Cheers,
André



More information about the Gcc-bugs mailing list