C++ PATCH for c++/986 (warn about temporary bound to reference in constructor)

Jason Merrill jason@redhat.com
Sun Nov 13 14:29:00 GMT 2011


My recent work on fixing lifetime extension for temporaries bound to 
references makes it trivial to add this warning.

Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 986.patch
Type: text/x-patch
Size: 2020 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111113/cac2aab4/attachment.bin>


More information about the Gcc-patches mailing list