https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119075
--- Comment #5 from Jonathan Wakely ---
(In reply to Jonathan Wakely from comment #3)
> You can construct a contrived testcase that fails the same way due to the
> _Bit_reference(_Bit_type*, _Bit_type) constructor:
>
> #include
> #include
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119075
--- Comment #4 from Jonathan Wakely ---
(In reply to Andrew Pinski from comment #1)
> Reading pr 115098 seems to this on purpose.
It was, but I can't find where we use that default constructor now. Maybe it
can be removed now. That doesn't chan
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119075
--- Comment #3 from Jonathan Wakely ---
You can construct a contrived testcase that fails the same way due to the
_Bit_reference(_Bit_type*, _Bit_type) constructor:
#include
#include
struct X { X(int, int) { } };
int test2(std::vector::refe
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119075
--- Comment #2 from Jonathan Wakely ---
I think [member.functions] allows us to define private constructors. The test
case above seems extremely contrived and unlikely to reflect any real code.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119075
--- Comment #1 from Andrew Pinski ---
Reading pr 115098 seems to this on purpose.