[C++ Patch] for c++/54537

Jason Merrill jason@redhat.com
Thu Nov 15 14:46:00 GMT 2012


On 11/15/2012 03:33 AM, Fabien Chêne wrote:
> 2012/11/14 Jason Merrill <jason@redhat.com>:
>> I'll just note that another solution would be to change non-template
>> forwarding pows to be extern "C" declarations.  But it sounds like you folks
>> have this issue in hand.
>
> I'm a bit puzzled by your suggestion, altough I have not tried it yet,
> how can it work given that the forwarding pows are overloaded ?

I was only thinking of the primary signature; putting

extern "C" double pow (double, double);

in any namespace will result in calling the C library function if that 
declaration is selected by overload resolution.

Jason



More information about the Libstdc++ mailing list