re PR c++/2518 (user-declared operator new hides standard one)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Mon, 5 Jul 2004 15:56:10 +0000 (15:56 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Mon, 5 Jul 2004 15:56:10 +0000 (15:56 +0000)
commit030bbecdbb3935ea4728da13d46dc0f0a9ebda4f
treecda5bfe77686f5e41b27ad2183b3a1b0d3c8a699
parent2709efd88c169398f2d23305813f6c7f3c3b18f0
re PR c++/2518 (user-declared operator new hides standard one)

PR c++/2518
* call.c (build_operator_new_call): Look only at global scope.

PR c++/2518
* g++.dg/lookup/new1.C: New test.

From-SVN: r84119
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/new1.C [new file with mode: 0644]