This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc c++ bug
- To: David Durham <david dot durham at wcom dot com>
- Subject: Re: gcc c++ bug
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Tue, 24 Jul 2001 13:35:06 -0400
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <3B5CAACD.3070903@wcom.com>
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