[Bug c++/19737] typename requirement error

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Feb 1 10:42:00 GMT 2005


"gianni at mariani dot ws" <gcc-bugzilla@gcc.gnu.org> writes:

| BTW - gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) accepts the
| code, would  this be a regression ?

Previous versions of GCC did not quite understand the notion of
"inject class name" and would erroneously accept things like

    struct A { };

    A::A a;


-- Gaby



More information about the Gcc-bugs mailing list