From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37509 invoked by alias); 1 Jun 2015 14:58:50 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 37496 invoked by uid 89); 1 Jun 2015 14:58:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 01 Jun 2015 14:58:47 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 2E043B82AC; Mon, 1 Jun 2015 14:58:46 +0000 (UTC) Received: from [10.10.116.38] ([10.10.116.38]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t51Ewjwl002709; Mon, 1 Jun 2015 10:58:45 -0400 Message-ID: <556C7321.2040008@redhat.com> Date: Mon, 01 Jun 2015 14:58:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Rainer Orth CC: gcc-patches List Subject: Re: C++ PATCH to handling of exception specs in system headers References: <55662E61.4020707@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-06/txt/msg00084.txt.bz2 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 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*)' It's not clear what the conflict is. Can you quote the declaration from stdlib_iso.h? Jason