From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3329 invoked by alias); 18 Apr 2005 17:38:25 -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 3282 invoked by uid 48); 18 Apr 2005 17:38:19 -0000 Date: Mon, 18 Apr 2005 17:38:00 -0000 Message-ID: <20050418173819.3281.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030701172459.11393.rearnsha@gcc.gnu.org> References: <20030701172459.11393.rearnsha@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11393] Initializer of static const float class member is not legal in c++98 X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg02437.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 17:38 ------- This is a documented deprecated feature: http://gcc.gnu.org/onlinedocs/gcc/Deprecated-Features.html#Deprecated-Features G++ allows static data members of const floating-point type to be declared with an initializer in a class definition. The standard only allows initializers for static members of const integral types and const enumeration types so this extension has been deprecated and will be removed from a future version. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11393