https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105550

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Missing copy elision with   |Missing copy elision with
                   |conditional operator in     |conditional operator
                   |NSDMI                       |

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This is not tied to NSDMIs; this one fails the same:

struct A {
  const A* p = this;
};

constexpr A a = true ? A{} : A{};

Reply via email to