]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/21336 (Internal compiler error when using custom new operators)
authorMark Mitchell <mark@codesourcery.com>
Fri, 3 Jun 2005 16:16:46 +0000 (16:16 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 3 Jun 2005 16:16:46 +0000 (16:16 +0000)
commit7e45bd18daca810d7ecbd83ffcd9e97d31de0f12
tree70ac825253c7f826918234c12f73d0876c812aa0
parent83cd747fd944f49180cc60ddb1c3a9f889fb6b63
re PR c++/21336 (Internal compiler error when using custom new operators)

PR c++/21336
* cp-tree.h (grok_op_properties): Remove friendp parameter.
* decl.c (grokfndecl): Adjust call.
(grok_op_properties): Determine the class of which the function is
a member by looking at its DECL_CONTEXT, not current_class_type.
* pt.c (tsubst_decl): Adjust call to grok_op_properties.

PR c++/21336
* g++.dg/template/new2.C: New test.

From-SVN: r100541
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/new2.C [new file with mode: 0644]