C++ PATCH for c++/56238 (ice-checking with static_cast)
Sat Feb 9 20:37:00 GMT 2013
The code in build_non_dependent_expr has caught a number of issues in
the compiler; this is another case that fold_non_dependent_expr wasn't
properly recognizing as dependent. I think we want to use
instantiation_dependent there going forward, but for 4.8 I think let's
just check it in the ENABLE_CHECKING code. Making this change exposed a
couple of bugs in instantiation_dependent_r: You can't use TREE_OPERAND
on TRAIT_EXPR, and we need to treat BIND_EXPRs as dependent because it
Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2605 bytes
Desc: not available
More information about the Gcc-patches