Compiling code below (g++ -O5 -c) fails with the error message below. This is the major source of performance loss since it leaves silly functions like this called zillions of times w/out inlining. Any workaround ? Yuri ---- code ---- template<typename T> __attribute__ ((__always_inline__)) T f(const T j) { return (j); } int x(int j) { int r; r = f(j); return (r); } ---- error message ---- i.C:2: sorry, unimplemented: inlining failed in call to 'T f(T) [with T = int]': function not inlinable i.C:6: sorry, unimplemented: called from here
actually this one is fixed in 4.0, problem though is that 4.0 isn't usable yet
*** This bug has been marked as a duplicate of 14950 ***