re PR c++/47974 (ICE: tree check: expected tree_vec, have error_mark in tsubst_templa...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 3 Mar 2011 17:07:28 +0000 (17:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 3 Mar 2011 17:07:28 +0000 (17:07 +0000)
commit5c62e6611d4b12f6fdf10743dd4d691d2d6d8962
treeee43198a70116b3b2281c862b023d96214d4a63b
parentff4bfb1056a816c881c9ffb0314b2ff202b32d03
re PR c++/47974 (ICE: tree check: expected tree_vec, have error_mark in tsubst_template_args, at cp/pt.c:8969 on invalid code)

/cp
2011-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/47974
* pt.c (tsubst_template_args): Check argument t for error_mark_node.

/testsuite
2011-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/47974
* g++.dg/template/crash106.C: New.

From-SVN: r170658
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash106.C [new file with mode: 0644]