This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: template function inlining in g++ version < 4.0
- From: Stephan Tolksdorf <andorxor at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 28 Jun 2007 22:47:32 +0200
- Subject: Re: template function inlining in g++ version < 4.0
- References: <4683A7C6.8040408@gmx.de>
Stephan Tolksdorf wrote:
Now I'm having difficulties understanding when exactly this bug is
triggered. Could maybe someone explain to me under which circumstances
GCC 3.4 fails to inline a templated function? Are there any general
workarounds? Is there any chance that the compiler inlines code even
though always_inline fails?
Seems like the problems I had were caused by using
"__attribute__((always_inline))" without an accompanying "inline".
Stephan