C++ PATCH for c++/47950 (ICE with condition in template)

Jason Merrill jason@redhat.com
Thu Mar 3 05:08:00 GMT 2011


The problem here was that we were folding the initializer too many 
times, so we lost the TREE_CONSTANT on the TARGET_EXPR.  Since we 
already fold in cp_parser_initializer_clause, it's redundant to do so in 
cp_parser_condition as well.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 47950.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110303/df73715b/attachment.ksh>


More information about the Gcc-patches mailing list