http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59115
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Wed Apr 9 00:09:28 2014 New Revision: 209230 URL: http://gcc.gnu.org/viewcvs?rev=209230&root=gcc&view=rev Log: /cp 2014-04-08 Paolo Carlini <paolo.carl...@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.carl...@oracle.com> PR c++/59115 * g++.dg/template/crash119.C: New. Added: trunk/gcc/testsuite/g++.dg/template/crash119.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog