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]

Re: gcc c++ bug


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.

Phil

-- 
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


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