http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336
--- Comment #12 from Marc Glisse <glisse at gcc dot gnu.org> --- It is a bit alarming that gcc, clang and clang++ use one ABI and g++ uses a different (inferior) one (the incompatibility with clang++ should affect some standard library functions, though they are often inlined). Also, extern "C" is a calling convention marker, and it is rather disrespectful of g++ to ignore it, even if this is only about a non-standard (but documented) extension.