This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: should "char T[0];" compile?
- To: Johan Huylebroeck <johan at easics dot be>
- Subject: Re: should "char T[0];" compile?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 12 Aug 1999 12:23:28 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <37B2D3DF.CC0CAC1F@easics.be>
On Aug 12, 1999, Johan Huylebroeck <johan@easics.be> wrote:
> This program should not compile:
> char T[0]; // <- array size should be positive > 0 (C++ std
> 8.3.4)
It's an extension. Compile with -ansi -pedantic to disable all
extensions.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them