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]

eb11


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 ----


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