re PR c++/59115 (ICE with invalid template parameter)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 9 Apr 2014 00:09:28 +0000 (00:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 9 Apr 2014 00:09:28 +0000 (00:09 +0000)
commita7c3f27684b2783d0d236086c3c767acc8f901c6
tree176512599b63bfa609a087005a533215c8787c0d
parentedb2b1b1fa0af901ab22ed58a4644115d3f4bbff
re PR c++/59115 (ICE with invalid template parameter)

/cp
2014-04-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59115
* pt.c (process_template_parm): For an invalid non-type parameter
only set TREE_TYPE to error_mark_node.
(push_inline_template_parms_recursive, comp_template_parms,
redeclare_class_template, coerce_template_template_parm,
coerce_template_template_parms, unify): Use error_operand_p.

/testsuite
2014-04-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59115
* g++.dg/template/crash119.C: New.

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