C++ PATCH for c++/56238 (ice-checking with static_cast)

Jason Merrill jason@redhat.com
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 
contains statements.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 56238.patch
Type: text/x-patch
Size: 2605 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130209/ce67bcb3/attachment.bin>

More information about the Gcc-patches mailing list