[Bug c++/2316] g++ fails to overload on language linkage
marc.glisse at normalesup dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 30 09:40:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316
--- Comment #22 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-30 09:32:24 UTC ---
(In reply to comment #21)
> I'll try your patch and see what, if anything, can be changed safely in
> libstdc++ right away.
Thanks :-)
Note that some things are painful to do right with extern "C". For instance,
the __stoa helper takes as argument a pointer to a function with a type that
depends on template arguments. As far as I can see, it is not possible to do
that for extern "C" functions (I posted a question about that on clc++m
yesterday), so that would mean rewriting this code differently. My guess is
that making extern "C" functions usable would require a few DR, or extern "C"
being part of the type will follow the example of "export" and be
deprecated/removed (the second option is more likely, even if that's yet
another change that hurts Oracle's compiler).
More information about the Gcc-bugs
mailing list