https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637
--- Comment #17 from David Edelsohn <dje at gcc dot gnu.org> --- Is the exception throw inside the constructor? Are saying that the linking a file with a function defined with __attribute__ (constructor) causes the failure solely because the file is linked or are you saying that throwing an exception inside the function defined with __attribute__ (constructor) fails? Throwing exceptions inside constructors is a known issue.