re PR c++/37647 (ICE with invalid use of constructor)
authorSimon Martin <simartin@users.sourceforge.net>
Fri, 27 Mar 2009 13:17:37 +0000 (13:17 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 27 Mar 2009 13:17:37 +0000 (06:17 -0700)
commit48b6cd9d20b473886b39b2a206765da747a88484
treec2bdd6259ed4f3763cf7a439c4ddf12a39f71514
parent6a837908f994e64fa285acdcc1183e9d0e41ff9a
re PR c++/37647 (ICE with invalid use of constructor)

gcc/cp/

2009-03-27  Simon Martin  <simartin@users.sourceforge.net>

PR c++/37647
* decl.c (grokdeclarator): Reject [con|de]stuctors in a non-class
scope.

gcc/testsuite/

2009-03-27  Simon Martin  <simartin@users.sourceforge.net>

PR c++/37647
* g++.dg/parse/ctor9.C: New test.

From-SVN: r145105
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/ctor9.C [new file with mode: 0644]