C++ PATCH for c++/49107 (excessive instantiation due to noexcept)

Jason Merrill jason@redhat.com
Wed Jun 15 08:09:00 GMT 2011


Another testcase attached to 49107 shows that we can't force noexcept 
instantiation as part of implicitly declaring special member functions; 
we need to defer their noexcept-specifications as well.

While I was working on this I noticed that it's not necessary to save 
and restore input_location when doing push/pop_tinst_level, as 
pop_tinst_level will restore the previous input_location, so in a 
separate patch I remove the unnecessary code I added recently.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 49107-2.patch
Type: text/x-patch
Size: 12614 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110615/6691f3de/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no-inp-save.patch
Type: text/x-patch
Size: 1490 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110615/6691f3de/attachment-0001.bin>


More information about the Gcc-patches mailing list