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]

Bug in egcs-2.91.66


The following code gives the following error:

class Foo {
private:
// stuff
  /* IAC WILL ECHO */
  static const unsigned char ec[4] = { 0xff, 0xfb, 0x1, 0x0 };

  /* IAC DO SUPPRESS GA */
  static const unsigned char ga[4] = { 0xff, 0xfd, 0x3, 0x0 };

  /* IAC DO LINEMODE */
  static const unsigned char lm[4] = { 0xff, 0xfd, 0x22, 0x0 };
// more stuff
public:
// even more stuff
};

in a .h file included by other .cpp files. this gives:


Foo.h:50: invalid initializer
Foo.h:53: invalid initializer
Foo.h:56: invalid initializer

--

However if I copy this code directly into the .cpp file it is supporting
in the 'global' section, there is no errors or warnings and it compiles
cleanly.

--

Either this is a bug in egcs -OR- I'm not writing purely ansi C++...

-ryan


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