re PR c++/56238 (ICE in tree check: expected record_type or union_type or qual_union_...
authorJason Merrill <jason@redhat.com>
Sat, 9 Feb 2013 20:38:33 +0000 (15:38 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 9 Feb 2013 20:38:33 +0000 (15:38 -0500)
commitd982e0246a48b79c822ee7e06c074f2041b6cea7
tree5f8ac63fbdfa4ff8ef98411e32f3290ca59533da
parent4ab7747c26fa2416e19c3bb1205f795d0753c605
re PR c++/56238 (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)

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.

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