eb79

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sat May 30 05:49:00 GMT 1998


This is incorrect code, and g++ reports it.

Martin

Index: eb79.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb79.C
*** eb79.C	1998/05/27 23:00:36	1.1
--- eb79.C	1998/05/30 12:33:58
*************** T max(T a, T b)
*** 8,14 ****
  }
  
  // Prototypes (enable one or the other)
! double max<>(double, double);
  // int max(int, int);
  
  int main()
--- 8,14 ----
  }
  
  // Prototypes (enable one or the other)
! double max<>(double, double);      // ERROR - bogus code
  // int max(int, int);
  
  int main()



More information about the Gcc-patches mailing list