[Bug c++/105550] Missing copy elision with conditional operator

2022-10-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0

[Bug c++/105550] Missing copy elision with conditional operator

2022-07-01 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/105550] Missing copy elision with conditional operator

2022-07-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:ecd11acacd6be57af930fa617d7c31ecb40e7f74 commit r13-1397-gecd11acacd6be57af930fa617d7c31ecb40e7f74 Author: Marek Polacek Date: We

[Bug c++/105550] Missing copy elision with conditional operator

2022-05-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550 --- Comment #2 from Marek Polacek --- // PR c++/105550 struct A { const A *p = this; }; struct B { const B *p = this; constexpr operator A() { return {}; } }; struct E { A a1 = true ? A{} : A{}; A a2 = true ? A{} : B{}; A a3 = fal

[Bug c++/105550] Missing copy elision with conditional operator

2022-05-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550 Marek Polacek changed: What|Removed |Added Summary|Missing copy elision with |Missing copy elision with

[Bug c++/105550] Missing copy elision with conditional operator in NSDMI

2022-05-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550 Marek Polacek changed: What|Removed |Added Keywords||rejects-valid Last reconfirmed|