This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/2316] g++ fails to overload on language linkage


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]