Re: C++ PATCH to handling of exception specs in system headers

2015-06-02 Thread Rainer Orth
Jason Merrill writes: > On 06/01/2015 11:34 AM, Rainer Orth wrote: >> Isn't this about global vs. std namespace? > > Probably. Does making the declaration in the testcase extern "C" help? It does indeed, and the test still passes on Linux. Rainer -- --

Re: C++ PATCH to handling of exception specs in system headers

2015-06-01 Thread Jason Merrill
On 06/01/2015 11:34 AM, Rainer Orth wrote: Isn't this about global vs. std namespace? Probably. Does making the declaration in the testcase extern "C" help? Jason

Re: C++ PATCH to handling of exception specs in system headers

2015-06-01 Thread Rainer Orth
Jason Merrill writes: > On 06/01/2015 08:13 AM, Rainer Orth wrote: >> Jason Merrill writes: >> >>> -pedantic shouldn't change something from OK into an error, but it was >>> doing so for redeclaration of a declaration from a system header with a >>> mismatched exception specification. And wheth

Re: C++ PATCH to handling of exception specs in system headers

2015-06-01 Thread Jason Merrill
On 06/01/2015 08:13 AM, Rainer Orth wrote: Jason Merrill writes: -pedantic shouldn't change something from OK into an error, but it was doing so for redeclaration of a declaration from a system header with a mismatched exception specification. And whether we are strict about things in system

Re: C++ PATCH to handling of exception specs in system headers

2015-06-01 Thread Rainer Orth
Jason Merrill writes: > -pedantic shouldn't change something from OK into an error, but it was > doing so for redeclaration of a declaration from a system header with a > mismatched exception specification. And whether we are strict about things > in system headers should be controlled by -Wsyst

C++ PATCH to handling of exception specs in system headers

2015-05-27 Thread Jason Merrill
-pedantic shouldn't change something from OK into an error, but it was doing so for redeclaration of a declaration from a system header with a mismatched exception specification. And whether we are strict about things in system headers should be controlled by -Wsystem-headers. Tested x86_64-p