[C++ PATCH] PR c++/87051

Ville Voutilainen ville.voutilainen@gmail.com
Thu Sep 13 10:01:00 GMT 2018


On 13 September 2018 at 12:08, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
> Curses.. the resetting is over-eager; we might have a non-trivial base
> or a member, and in those cases we shouldn't
> reset the triviality when we see a non-user-provided const copy. I
> think I'll hack around this with a non 0/1 value. :)

Testing the attached. I think it might need a comment, and I'm not
sure how to word it.
Here are some options:

1) /* Yo dawg, we heard you'd like another bit, so we added a second
bit to your bit
so you can read the other bit when you read your bit */
2) /* I'm vewy vewy sowwy */
3) /* We need to attach another bit to the TYPE_HAS_COMPLEX_COPY_CTOR
bit, so let's
quantum-entangle the additional bit and the actual bit */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr87051.diff
Type: text/x-patch
Size: 1274 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180913/04cdb470/attachment.bin>


More information about the Gcc-patches mailing list