https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99362
Harald van Dijk <harald at gigawatt dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |harald at gigawatt dot nl
--- Comment #3 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Jakub Jelinek from comment #1)
> [[nodiscard]] on a constructor makes no sense.
[[nodiscard]] on constructors doesn't apply to the implicit return value forced
by some ABIs being discarded, it applies to the constructed type being
discarded, see
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1771r1.pdf, and can
make sense if it is used for that.