This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/59115] [4.7/4.8/4.9 Regression] ICE with invalid template parameter


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

Added:
    trunk/gcc/testsuite/g++.dg/template/crash119.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]