decl.c (grok_op_properties): Reject [de-]allocation functions declared in a namespace...
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Mon, 12 Jul 2004 17:54:49 +0000 (17:54 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Mon, 12 Jul 2004 17:54:49 +0000 (17:54 +0000)
commit3143d517e48ff2f8d99c9069a4df2263c49021d8
tree9910e46d081e026fb82bf1607b140fe8d2f0e576
parent2176cbb5b3c12d3e6e14d1b437b61063169e3b14
decl.c (grok_op_properties): Reject [de-]allocation functions declared in a namespace, or declared as static.

* decl.c (grok_op_properties): Reject [de-]allocation functions
declared in a namespace, or declared as static.

* g++.dg/lookup/new2.C: New test.
* g++.old-deja/g++.ns/new1.C: Remove (ill-formed).

From-SVN: r84567
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/new2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.ns/new1.C [deleted file]