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

--- Comment #33 from Hana Dusíková <hanicka at hanicka dot net> ---
(In reply to Jonathan Wakely from comment #32)
> ... at compile-time does it matter if the what() function does something
> else? It can't launch missiles or format hard drives during consteval. The
> worst it can do is print garbage to the terminal, but a type derived from
> std::exception could do that too.

It doesn't, constant evaluation is finishing (same as checking for memory leak)
and you can still call the .what() on it, but there can't be any side-effect
and your program is already ill-formed.

Reply via email to