C++ PATCH for c++/58102 (constexpr and mutable)

Jason Merrill jason@redhat.com
Tue Nov 18 13:44:00 GMT 2014


We need to allow copy-list-initialization of constexpr variables with 
mutable members, too.  The thing we need to avoid is not so much an 
full-expression with mutable-containing type as assuming that a mutable 
member of a variable hasn't changed since the variable was initialized.

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


More information about the Gcc-patches mailing list