[Bug c++/56238] [4.7/4.8 regression] ICE in tree check: expected record_type or union_type or qual_union_type, have template_type_parm in lookup_conversions, at cp/search.c:2515

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 9 20:39:00 GMT 2013


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2013-02-09 20:38:44 UTC ---
Author: jason
Date: Sat Feb  9 20:38:33 2013
New Revision: 195920

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195920
Log:
    PR c++/56238
    * pt.c (build_non_dependent_expr): Don't try to fold
    instantiation-dependent expressions.
    (instantiation_dependent_r) [TRAIT_EXPR]: Split out.
    [BIND_EXPR]: Treat as dependent.

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



More information about the Gcc-bugs mailing list