OSDN Git Service

PR c++/19244
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jan 2005 20:21:13 +0000 (20:21 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jan 2005 20:21:13 +0000 (20:21 +0000)
commit6ecedd95b689097e42fc054cfa155b6bb13e90f3
tree307172f1e13dfc0be1ce45edfd079614f0da9c2e
parentf79d7cb1b348b993ba774d2b61fe4c794385ab8f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93004 138bc75d-0d04-0410-961f-82ee72b054a4
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]