This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: template function inlining in g++ version < 4.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]