C++ PATCH for c++/55753 (ICE with constexpr)

Jason Merrill jason@redhat.com
Mon Jan 7 16:58:00 GMT 2013


And another bug: we were building an AGGR_INIT_EXPR in non-dependent 
code, and then failing to handle it properly in fold_non_dependent_expr. 
  Fixed by not creating AGGR_INIT_EXPR in templates.  As a result, we 
end up with a CALL_EXPR to the address of a constructor, and we need to 
avoid an error when instantiating that by stripping the address and 
letting the call code put it back.

Tested x86_64-pc-linux-gnu, applying to trunk.  This is only an ICE with 
checking enabled, so I'm not going to apply it to 4.7.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 55753-2.patch
Type: text/x-patch
Size: 1758 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130107/3df598bc/attachment.bin>


More information about the Gcc-patches mailing list