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]

eb8


I'm not sure what this report was about; the three errors are
certainly real.

Martin

Index: eb8.C
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/g++.old-deja/g++.robertl/eb8.C,v
retrieving revision 1.1
diff -c -p -r1.1 eb8.C
*** eb8.C	1998/05/27 23:00:36	1.1
--- eb8.C	1998/06/01 10:23:42
***************
*** 1,12 ****
  
  class foo {
  public:
!   operator <<(const void *);
!   operator <<(char *);
  };
  
  void main()
! {
    foo f;
    f << (void*)0;
  }
--- 1,12 ----
  
  class foo {
  public:
!   operator <<(const void *);  //ERROR - no return type
!   operator <<(char *);        //ERROR - no return type
  };
  
  void main()
! {                             //ERROR - wrong return type for main
    foo f;
    f << (void*)0;
  }


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