This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34776] [4.1/4.2/4.3 regression] ICE with invalid member declaration in template class
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2008 01:50:17 -0000
- Subject: [Bug c++/34776] [4.1/4.2/4.3 regression] ICE with invalid member declaration in template class
- References: <bug-34776-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from paolo at gcc dot gnu dot org 2008-01-21 01:50 -------
Subject: Bug 34776
Author: paolo
Date: Mon Jan 21 01:49:29 2008
New Revision: 131686
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131686
Log:
/cp
2008-01-20 Paolo Carlini <pcarlini@suse.de>
PR c++/34776
PR c++/34486
* name-lookup.c (do_class_using_decl): Do not call constructor_name_p
on non-IS_AGGR_TYPE type scope.
(constructor_name_p): Assert IS_AGGR_TYPE.
/testsuite
2008-01-20 Paolo Carlini <pcarlini@suse.de>
PR c++/34776
PR c++/34486
* g++.dg/template/crash75.C: New.
* g++.dg/template/crash76.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/template/crash75.C
trunk/gcc/testsuite/g++.dg/template/crash76.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34776