This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
eb79
- To: egcs-patches at cygnus dot com
- Subject: eb79
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Sat, 30 May 1998 14:46:36 +0200
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()