[Bug c++/86385] calling wrong constructors?

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > Fixed for GCC 13+ by r13-2964-gbbdb5612f6661f2c64b0c0f1d2291cb59fde2b40 . Or by r13-2963-g32b2eb59fb9049 . Anyways both together are needed IIRC.

[Bug c++/86385] calling wrong constructors?

2024-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c++/86385] calling wrong constructors?

2021-08-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 Andrew Pinski changed: What|Removed |Added CC||st at quanttec dot com --- Comment #4

[Bug c++/86385] calling wrong constructors?

2021-05-13 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 Jonathan Wakely changed: What|Removed |Added Last reconfirmed|2018-07-03 00:00:00 |2021-5-13 --- Comment #3 from

[Bug c++/86385] calling wrong constructors?

2018-07-03 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 --- Comment #2 from Jonathan Wakely --- Reduced slightly: struct A { int* a; A(int a) : a(new int(a)) {} ~A() { delete a; } A(const A&) = delete; A(A&& other) { a = other.a; other.a = 0; }; operator bool() { return true; } }; A

[Bug c++/86385] calling wrong constructors?

2018-07-03 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86385 Jonathan Wakely changed: What|Removed |Added Keywords||wrong-code