From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15452 invoked by alias); 19 Feb 2009 15:40:33 -0000 Received: (qmail 15385 invoked by alias); 19 Feb 2009 15:40:16 -0000 Date: Thu, 19 Feb 2009 15:40:00 -0000 Message-ID: <20090219154016.15384.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/39242] [4.4 Regression] Inconsistent reject / accept of code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hubicka at ucw dot cz" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg01732.txt.bz2 ------- Comment #9 from hubicka at ucw dot cz 2009-02-19 15:40 ------- Subject: Re: [4.4 Regression] Inconsistent reject / accept of code > /* Check to see whether we know that this template will be > instantiated in some other file, as with "extern template" > extension. */ > external_p = (DECL_INTERFACE_KNOWN (d) && DECL_REALLY_EXTERN (d)); > /* In general, we do not instantiate such templates... */ > if (external_p > /* ... but we instantiate inline functions so that we can inline > them and ... */ > && ! (TREE_CODE (d) == FUNCTION_DECL > && DECL_DECLARED_INLINE_P (d)) Hmm, in general it is benefical to instantiate stuff for sake of IPA optimizers. It would be interesting to know how this affects code quality... Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39242