gcc c++ bug

Phil Edwards pedwards@disaster.jaj.com
Tue Jul 24 10:33:00 GMT 2001

On Mon, Jul 23, 2001 at 05:53:01PM -0500, David Durham wrote:
> struct foo
> {
>         char field[25];
>         static int getSize()
>         {
>                 return(sizeof(field));
>         }
> };

Nope, can't do that.  GCC 2.9x was not quite conformant in these matters.

> Is there something about ANSI 
> C99 and the fact that arrays can have non-constant sizes or something?

C99 has nothing to do with C++98, you know.


Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
                                     - anonymous Egyptian scribe, c.1700 BC

More information about the Gcc-bugs mailing list