From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31899 invoked by alias); 26 Jan 2005 16:22:28 -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 31604 invoked by uid 48); 26 Jan 2005 16:22:09 -0000 Date: Wed, 26 Jan 2005 16:22:00 -0000 Message-ID: <20050126162209.31602.qmail@sourceware.org> From: "jeanmichel dot gilbert at videotron dot ca" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040414064852.14950.veksler@il.ibm.com> References: <20040414064852.14950.veksler@il.ibm.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/14950] [3.4 Regression] [non unit-at-a-time] always_inline does not mix with templates and -O0 X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg03878.txt.bz2 List-Id: ------- Additional Comments From jeanmichel dot gilbert at videotron dot ca 2005-01-26 16:22 ------- There is more to this bug than the compilation of code specified always_inline at -O0. I have some template code that compiles fine at -O2 but gives lots of inlining warning at -O1. Without template, it works OK. With template, it gives the same warning as below (replacing sorry unimplemented with warning). Here's a sample of the code : class Vector { template void Evaluate(const T& e) { v[0]=e[0]; v[1]=e[1]; v[2]=e[2]; } }; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14950