This is the mail archive of the gcc-bugs@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]

warning on missing ; (egcs 1.0.2)


I cant seem to reproduce it again, but I forgot to add a ; after the class
declaration, and it kept giving me a

a.C:2: return type specification for constructor

instead of the "semicolon missing after declaration" warning

*** a.h
#ifndef a_h
#define a_h

// correct declarations here
// ...

class A
{
public:
  A();
}
#endif

*** a.c
#include "a.h"


____/|  Ragnar Hojland  (tech.support@redestb.es)        Fingerprint  94C4B
\ o.O|                                                   2F0D27DE025BE2302C
 =(_)=  "Thou shalt not follow the NULL pointer for      104B78C56 B72F0822
   U     chaos and madness await thee at its end."       hkp://keys.pgp.com



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