re PR c++/16623 (g++ ICE in tsubst_decl:6081)
authorMark Mitchell <mark@codesourcery.com>
Mon, 19 Jul 2004 19:28:09 +0000 (19:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 19 Jul 2004 19:28:09 +0000 (19:28 +0000)
commit43fa0f09d933559e09925b054dace39b83f12076
treefa2e55ca24d17194496f15f5099abd3034cf20f1
parent28c008bb89e0ab798c2d16c68f51fb01fdccb135
re PR c++/16623 (g++ ICE in tsubst_decl:6081)

PR c++/16623
* cp-tree.h (lang_type_class): Add lazy_assignment_op.
(CLASSTYPE_LAZY_ASSIGNMENT_OP): New macro.
* class.c (add_implicitly_declared_members): Use
CLASSTYPE_LAZY_ASSIGNMENT_OP.
* method.c (lazily_declare_fn): Clear
CLASSTYPE_LAZY_ASSIGNMENT_OP.
* search.c (lookup_fnfields_1): Check it.

PR c++/16623
* g++.dg/template/assign1.C: New test.

From-SVN: r84928
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/assign1.C [new file with mode: 0644]