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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|nodiscard attribute ignored |nodiscard attribute on
                   |on temporary created        |class not copied to the
                   |                            |constructors

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

Reply via email to