http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55394
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-19 13:44:48 UTC --- (In reply to comment #0) > A source file which contains call_once will compile without any errors or > warnings, even when libpthread is not linked. Obviously this is because compiling and linking are separate steps. The compiler front-end doesn't know in advance whether the linker will be invoked correctly. It might be possible to do something similar to PR 52681 to improve the exception's message.