4.4 C++ PATCH for c++/43024 (ice with -O2)

Jason Merrill jason@redhat.com
Fri Feb 12 22:26:00 GMT 2010


This is basically the same bug as 41183: cloning doesn't preserve 
cfun->language, so when mangling wants to do some template substitution, 
anything that relies on cfun->language being set will SEGV.  So we apply 
the same robustification fix.

Tested x86_64-pc-linux-gnu, applied to 4.4 and trunk.  I don't have a 
suitable reduced testcase to add to the testsuite; the one in the PR is 
large even after delta and doesn't crash on i686, just x86_64.  Volker, 
could I ask you to to take a shot at reducing it further?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 43024.patch
Type: text/x-patch
Size: 690 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100212/82f3b043/attachment.bin>


More information about the Gcc-patches mailing list