This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in egcs-2.91.66
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Bug in egcs-2.91.66
- From: ryan <ryan at netidea dot com>
- Date: Tue, 01 Jun 1999 02:40:49 +0000
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