------- 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