On 2025-09-18 15:19, Collin Funk wrote:
Does GCC have an option to make 'unreachable ()' abort?

Sure, -fsanitize=undefined.

the behavior I think is best would be to use it
as a compiler hint by default, then have a flag for developers to have
it behave like 'abort ()'.

Exactly.

Reply via email to