[Bug c++/15011] partial ordering failure?

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Apr 19 21:00:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-19 17:31 -------
One more testcase, GCC and ICC both accept this one:
template <class T> int f(T);
template <class T> char* f(T volatile&);
int a;
int x = f(0);

And one more removing the volatile (as IIRC volatile here does nothing in this context),
ICC and GCC rejects this:
template <class T> int f(T);
template <class T> char* f(T &);
int a;
char* b = f(a);

-- 


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



More information about the Gcc-bugs mailing list