re PR c++/19244 (Typedef of anonymous class incorrectly handled in member function...
authorMark Mitchell <mark@codesourcery.com>
Thu, 6 Jan 2005 20:21:13 +0000 (20:21 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 6 Jan 2005 20:21:13 +0000 (20:21 +0000)
commit27d6592cc72001b4d4c9b9b4555eecc19d0203e9
tree307172f1e13dfc0be1ce45edfd079614f0da9c2e
parent27916b83f5f371d27f728fcc003fe93b0e44b3cc
re PR c++/19244 (Typedef of anonymous class incorrectly handled in member function definition)

PR c++/19244
* class.c (add_implicitly_declared_members): Remove dead code.
* decl.c (grokfndecl): Add sfk parameter.  Use it do set
DECL_CONSTRUCTOR_P.
(grokdeclarator): Adjust calls to grokfndecl.
* method.c (implicitly_declare_fn): Improve documentation.
* parser.c (cp_parser_direct_declarator): Do not consider a
function to be a constructor if the containing class was
originally anonymous.

        PR c++/19244
* g++.dg/parser/ctor2.C: New test.

From-SVN: r93004
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/ctor2.C [new file with mode: 0644]