This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
eb11
- To: egcs-patches at cygnus dot com
- Subject: eb11
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Mon, 1 Jun 1998 12:27:08 +0200
This test case makes no sense with meta_max not being defined (i.e.
everybody would expect errors, and we get errors).
With this patch, the case passes.
Martin
Index: eb11.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb11.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb11.C
*** eb11.C 1998/05/27 23:00:35 1.1
--- eb11.C 1998/06/01 10:23:40
***************
*** 1,12 ****
// Build don't link:
- #define NO_META_MAX
- #ifndef NO_META_MAX
template<int N1, int N2>
struct meta_max {
enum { max = (N1 > N2) ? N1 : N2 };
};
- #endif
struct X {
enum {
--- 1,9 ----