This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28271] Specialization of a function is not called if compile with -03 option
- From: "maxime dot fiandino at imag dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2006 14:33:16 -0000
- Subject: [Bug c++/28271] Specialization of a function is not called if compile with -03 option
- References: <bug-28271-10438@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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