This is the mail archive of the gcc-bugs@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]

[Bug c++/28271] Specialization of a function is not called if compile with -03 option



------- Comment #7 from maxime dot fiandino at imag dot fr  2006-07-05 14:33 -------
Thanks, for you quick answer Richard.

Where i don't understand is, it is working well if i declare
the generic template function with:

template<typename T> bool foo(T val) __attribute__(noinline)
{
return false;
}

Just in the case this workaround (perhaps evil) may interest some people.

I return to read the C++ spec this night, i missed this point.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28271


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