https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108361
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
std::system_error::system_error is definitely originally called in the source.
Just that after inlining and some optimizations, the call is removed from the
call from main.
The missed optimization is a dup of bug 99373.
But the linker errors is a bug in your code really.
*** This bug has been marked as a duplicate of bug 99373 ***