From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31705 invoked by alias); 12 Nov 2002 17:26:09 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31686 invoked by uid 71); 12 Nov 2002 17:26:08 -0000 Resent-Date: 12 Nov 2002 17:26:08 -0000 Resent-Message-ID: <20021112172608.31685.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, mengel@fnal.gov Received: (qmail 28326 invoked by uid 61); 12 Nov 2002 17:21:00 -0000 Message-Id: <20021112172100.28324.qmail@sources.redhat.com> Date: Tue, 19 Nov 2002 16:10:00 -0000 From: mengel@fnal.gov Reply-To: mengel@fnal.gov To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8549: --pedantic-errors problems on RedHat 6.1 X-SW-Source: 2002-11/txt/msg00594.txt.bz2 List-Id: >Number: 8549 >Category: c++ >Synopsis: --pedantic-errors problems on RedHat 6.1 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Nov 12 09:26:06 PST 2002 >Closed-Date: >Last-Modified: >Originator: Marc Mengel >Release: 3.1 >Organization: >Environment: i686-pc-linux-gnu, Red Hat 6.1 >Description: --pedantic-error causes compilation failures when --pedantic is silent. This happens only on RedHat 6.1, not sure why. This fails similarly in 3.0.1 and 3.1. >How-To-Repeat: echo "#include " > foo.cc g++ -c -O --pedantic foo.cc g++ -c -O --pedantic-errors foo.cc For me, the first yeilds no warnings or errors, while the second yeilds: In file included from /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/cmath:31, from foo.cc:1: /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/bits/std_cmath.h: In function `int __gnu_cxx::__capture_isgreater(_Tp, _Tp)': /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/bits/std_cmath.h:534: ISO C++ forbids braced-groups within expressions /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/bits/std_cmath.h: In function `int __gnu_cxx::__capture_isgreaterequal(_Tp, _Tp)': /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/bits/std_cmath.h:539: ISO C++ forbids braced-groups within expressions /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/bits/std_cmath.h: In function `int __gnu_cxx::__capture_isless(_Tp, _Tp)': /afs/fnal.gov/ups/gcc/v3_0_1/Linux+2.2/include/g++-v3/bits/std_cmath.h:543: ISO C++ forbids braced-groups within expressions ... >Fix: >Release-Note: >Audit-Trail: >Unformatted: