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]

eb fix 1


I start looking into some of Robert's digressions.

This code is in error, and egcs detects that.

We might want to remove it.

Martin


Index: eb118.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb118.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb118.C
*** eb118.C	1998/05/27 23:00:35	1.1
--- eb118.C	1998/05/28 19:13:56
*************** A<T>::test(){
*** 13,23 ****
    cerr << "test for " << typeid(*this).name() << endl;
  }
  // Specialization declaration
! void
  A<double>::test();
  
  // Specialization definition
! void
  A<double>::test(){  // ============= LINE 21 ==================
    cerr << "specialization for " << typeid(*this).name() << endl;
  }
--- 13,23 ----
    cerr << "test for " << typeid(*this).name() << endl;
  }
  // Specialization declaration
! void                           // ERROR - not a specialization
  A<double>::test();
  
  // Specialization definition
! void                           // ERROR - not a specialization
  A<double>::test(){  // ============= LINE 21 ==================
    cerr << "specialization for " << typeid(*this).name() << endl;
  }


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