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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #4)
> I wonder if we should refuse to evaluate A::A (this) (returning a pointer)
> into {} (not a pointer).

If the constructor returns a pointer, instead of maybe_constant_value
evaluating A::A (this) to (*this = {}), perhaps it should become (*this = {},
this)?

Reply via email to