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

eb87


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
  


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