https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107778
--- Comment #1 from cqwrteur <unlvsur at live dot com> --- __attribute__ ((weak)) void handle_contract_violation (const std::experimental::contract_violation &) { __builtin_trap(); } some thing like that. I cannot afford stdio and iostream