[Bug libstdc++/119075] LWG4140 seems incompletely implemented

2025-03-02 Thread redi at gcc dot gnu.org via Gcc-bugs
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 >

[Bug libstdc++/119075] LWG4140 seems incompletely implemented

2025-03-02 Thread redi at gcc dot gnu.org via Gcc-bugs
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

[Bug libstdc++/119075] LWG4140 seems incompletely implemented

2025-03-02 Thread redi at gcc dot gnu.org via Gcc-bugs
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

[Bug libstdc++/119075] LWG4140 seems incompletely implemented

2025-03-02 Thread redi at gcc dot gnu.org via Gcc-bugs
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.

[Bug libstdc++/119075] LWG4140 seems incompletely implemented

2025-03-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119075 --- Comment #1 from Andrew Pinski --- Reading pr 115098 seems to this on purpose.