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

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #3)
> If we add [[nodiscard]] to the constructors of the standard exception types
> then we get a warning with no compiler changes needed:

...in Compiler Explorer as:
  https://godbolt.org/z/Po4oMPcox

Reply via email to