From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10318 invoked by alias); 28 Apr 2005 09:24:58 -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 10193 invoked by uid 48); 28 Apr 2005 09:24:46 -0000 Date: Thu, 28 Apr 2005 09:24:00 -0000 Message-ID: <20050428092446.10192.qmail@sourceware.org> From: "matz at suse dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050418172616.21089.matz@suse.de> References: <20050418172616.21089.matz@suse.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/21089] [4.0/4.1 Regression] C++ front-end does not "inline" the static const double X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg03950.txt.bz2 List-Id: ------- Additional Comments From matz at suse dot de 2005-04-28 09:24 ------- Yes, I determined that already in the initial report; to cite myself: > It's invalid for two reasons I think, first the missing definition, instead > of the declaration. [the second reason being the use of the GNU extension]. But it can be trivially made valid (just provide a definition), and I assumed this to be done for sake of this bugreport. Using the GNU extension this would then be valid, and _then_ the value is still not propagated to the method body. _That_'s what I'm complaining about, the missed optimization. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21089