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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> If we move the nodiscard to the constructor, GCC errors out correctly.

That is true even on the original testcase.

Reply via email to