This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to handling of exception specs in system headers
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 01 Jun 2015 14:13:48 +0200
- Subject: Re: C++ PATCH to handling of exception specs in system headers
- Authentication-results: sourceware.org; auth=none
- References: <55662E61 dot 4020707 at redhat dot com>
Jason Merrill <jason@redhat.com> 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 -Wsystem-headers.
>
> Tested x86_64-pc-linux-gnu, applying to trunk.
The new g++.dg/warn/Wsystem-headers1.C test FAILs on Solaris 10 and 11:
FAIL: g++.dg/warn/Wsystem-headers1.C -std=c++98 (test for excess errors)
/vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/warn/Wsystem-headers1.C:3:33: error: 'double atof(const char*)' conflicts with a previous declaration
In file included from /usr/include/stdlib.h:17:0,
from /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/warn/Wsystem-headers1.C:1:
/var/gcc/regression/trunk/10-gcc/build/gcc/include-fixed/iso/stdlib_iso.h:119:15: note: previous declaration 'double std::atof(const char*)'
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University