re PR c++/34776 (ICE with invalid member declaration in template class)
authorPaolo Carlini <pcarlini@suse.de>
Mon, 21 Jan 2008 01:49:29 +0000 (01:49 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 21 Jan 2008 01:49:29 +0000 (01:49 +0000)
commitdbc21af5a938e0fe7ed40a3bba24555658f83eb9
treeed3c687103842fcf2da43e11d04d5b4a2e3daa5a
parent604f825c83f937b56207bca2fc92ef9d1442a8af
re PR c++/34776 (ICE with invalid member declaration in template class)

/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.

From-SVN: r131686
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash75.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash76.C [new file with mode: 0644]