[Bug c++/15011] partial ordering failure?
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Apr 19 19:25:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-19 17:25 -------
If I remove the violate one it rejects it as the return type, char*, is different than the type
which is expecting so maybe this invalid.
One more testcase:
template <class T> int f(T);
template <class T> char* f(T volatile&);
int a;
char* b = f(a);
int x = f(a); //<-- should this be rejected or not, ICC rejects it as char* cannot be converted
to directly int.
So it looks like ICC is ignoring the first template function at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15011
More information about the Gcc-bugs
mailing list