From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36862 invoked by alias); 1 Jun 2015 12:13:59 -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 36851 invoked by uid 89); 1 Jun 2015 12:13:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: smtp-relay.CeBiTec.Uni-Bielefeld.DE Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Jun 2015 12:13:52 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id B6A2C221; Mon, 1 Jun 2015 14:13:50 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qz6k+lykg1VM; Mon, 1 Jun 2015 14:13:49 +0200 (CEST) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 3D12D21F; Mon, 1 Jun 2015 14:13:49 +0200 (CEST) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.15.1+Sun/8.15.1/Submit) id t51CDmuA028115; Mon, 1 Jun 2015 14:13:48 +0200 (CEST) From: Rainer Orth To: Jason Merrill Cc: gcc-patches List Subject: Re: C++ PATCH to handling of exception specs in system headers References: <55662E61.4020707@redhat.com> Date: Mon, 01 Jun 2015 12:13:00 -0000 In-Reply-To: <55662E61.4020707@redhat.com> (Jason Merrill's message of "Wed, 27 May 2015 16:51:45 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00059.txt.bz2 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*)' Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University