From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1133 invoked by alias); 4 Jul 2003 11:10:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1104 invoked from network); 4 Jul 2003 11:10:44 -0000 Received: from unknown (HELO uniton.integrable-solutions.net) (62.212.99.186) by sources.redhat.com with SMTP; 4 Jul 2003 11:10:44 -0000 Received: from uniton.integrable-solutions.net (localhost [127.0.0.1]) by uniton.integrable-solutions.net (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id h64B6neR001020; Fri, 4 Jul 2003 13:06:49 +0200 Received: (from gdr@localhost) by uniton.integrable-solutions.net (8.12.3/8.12.3/Submit) id h64B6nNt001019; Fri, 4 Jul 2003 13:06:49 +0200 X-Authentication-Warning: uniton.integrable-solutions.net: gdr set sender to gdr@integrable-solutions.net using -f To: gcc-bugzilla@gcc.gnu.org Cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug c++/11393] New: Initializer of static const float class member is not legal in c++98 References: <20030701172459.11393.rearnsha@gcc.gnu.org> From: Gabriel Dos Reis In-Reply-To: <20030701172459.11393.rearnsha@gcc.gnu.org> Organization: Integrable Solutions Date: Fri, 04 Jul 2003 11:10:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00342.txt.bz2 List-Id: "rearnsha at gcc dot gnu dot org" writes: | PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. | | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11393 | | Summary: Initializer of static const float class member is not | legal in c++98 | Product: gcc | Version: 3.4 | Status: UNCONFIRMED | Keywords: accepts-invalid | Severity: normal | Priority: P2 | Component: c++ | AssignedTo: unassigned at gcc dot gnu dot org | ReportedBy: rearnsha at gcc dot gnu dot org | CC: gcc-bugs at gcc dot gnu dot org | GCC build triplet: any | | The following code is not legal in c++ 98 (9.4.2 par 4) and should generate a | diagnostic. As this is probably a gnu extension, it should probably only do | this when -std=c++98. I think that was even removed in 3.4, so we should definitely error (or pedwarn) that construct. -- Gaby