PR c++/51194 - ICE with invalid alias template
authorDodji Seketeli <dodji@redhat.com>
Sun, 20 Nov 2011 07:10:24 +0000 (07:10 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Sun, 20 Nov 2011 07:10:24 +0000 (08:10 +0100)
commitfcb36e7363f231cd0b58f500ef6fabf6da214e32
treebc79e57074c519761cbdad6d84718baf024059ab
parent417c27ab304f6e807ff295a53e49b5c8169bd272
PR c++/51194 - ICE with invalid alias template

gcc/cp/

PR c++/51194
* pt.c (lookup_template_class_1): Go out early if the type of the
template is error_mark_node.

gcc/testsuite/

PR c++/51194
* g++.dg/cpp0x/alias-decl-15.C: New test.

From-SVN: r181523
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alias-decl-15.C [new file with mode: 0644]