re PR c++/20186 (ICE with static_cast and type dependent variable (templates))
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 9 Mar 2005 12:57:13 +0000 (12:57 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 9 Mar 2005 12:57:13 +0000 (12:57 +0000)
commit974b30f0ae978dc9c3c5f7d0cef914f99d8c48d5
tree17f4d1e354cce34373329a5aa3eb5ccf2b29f82d
parente2b8bd6cd8790cf7ef04a2437e9b58b311bfd64a
re PR c++/20186 (ICE with static_cast and type dependent variable (templates))

cp:
PR c++/20186
* pt.c (contains_dependent_cast_p): New.
(fold_non_dependent_expr): Call it.
testsuite:
PR c++/20186
* g++.dg/template/non-dependent12.C: New.

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