Re: [patch] libstdc++/69386 Ensure C++ language linkage in cmath and cstdlib

2016-01-21 Thread Jonathan Wakely
On 20/01/16 12:34 +, Jonathan Wakely wrote: --- a/libstdc++-v3/include/c_global/ccomplex +++ b/libstdc++-v3/include/c_global/ccomplex @@ -35,6 +35,8 @@ # include #endif +extern "C++" { #include +} P.S. I would have preferred not to do this around and add the linkage specification inside

Re: [patch] libstdc++/69386 Ensure C++ language linkage in cmath and cstdlib

2016-01-21 Thread Jonathan Wakely
On 21/01/16 10:27 +0100, Dominique d'Humières wrote: Jonathan, PR libstdc++/69386 * include/c_global/ccomplex: Ensure C++ language linkage. * include/c_global/cmath: Likewise. * include/c_global/cstdlib: Likewise. * include/c_global/ctgmath: Likewise. * testsuite/17_intro

Re: [patch] libstdc++/69386 Ensure C++ language linkage in cmath and cstdlib

2016-01-21 Thread Dominique d'Humières
Jonathan, > PR libstdc++/69386 > * include/c_global/ccomplex: Ensure C++ language linkage. > * include/c_global/cmath: Likewise. > * include/c_global/cstdlib: Likewise. > * include/c_global/ctgmath: Likewise. > * testsuite/17_intro/headers/c++2011/linkage.cc: New. The test

[patch] libstdc++/69386 Ensure C++ language linkage in cmath and cstdlib

2016-01-20 Thread Jonathan Wakely
On 19/01/16 21:43 +, Jonathan Wakely wrote: On 08/01/16 19:18 +, Jonathan Wakely wrote: This resolves the longstanding issue that #include uses the C library header, which on most targets doesn't declare the additional overloads required by C++11 26.8 [c.math], and similarly for . With