This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
eb87
- To: egcs-patches at cygnus dot com
- Subject: eb87
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Mon, 1 Jun 1998 12:38:01 +0200
g++ is right here.
Martin
Index: eb87.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb87.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb87.C
*** eb87.C 1998/05/27 23:00:36 1.1
--- eb87.C 1998/06/01 10:23:42
*************** template <unsigned X, class T> struct Fo
*** 2,6 ****
friend void operator<<(int, Foo const &) {}
};
template <unsigned X> class Bar : public Foo<X,int> {};
! inline Bar<0> bar(int,int,int) { return Bar<3>(); }
--- 2,6 ----
friend void operator<<(int, Foo const &) {}
};
template <unsigned X> class Bar : public Foo<X,int> {};
! inline Bar<0> bar(int,int,int) { return Bar<3>(); } // ERROR - no conversion