[Bug c++/59347] [4.9 Regression] ICE on invalid: tree check: expected class 'type', have 'exceptional' (error_mark) in tsubst_decl, at cp/pt.c:10798

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 21 21:44:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59347

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Feb 21 21:43:29 2014
New Revision: 208025

URL: http://gcc.gnu.org/viewcvs?rev=208025&root=gcc&view=rev
Log:
    PR c++/59347
    * pt.c (tsubst_decl) [TYPE_DECL]: Don't try to instantiate an
    erroneous typedef.

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



More information about the Gcc-bugs mailing list