This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: possible bug? gcc version 2.95.1 19990809 (prerelease) C i386-linux
- To: cej at CEJCHAN dot gli dot cas dot cz
- Subject: Re: possible bug? gcc version 2.95.1 19990809 (prerelease) C i386-linux
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 08 Nov 1999 09:15:16 -0200
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <cej-991108120831.A0A25569@CEJCHAN.gli.cas.cz>
On Nov 8, 1999, cej@CEJCHAN.gli.cas.cz wrote:
> FILE *ErrorFile = stdout; <-- error line in the source
> initializer element is not constant <-- error message
You can't expect stdout to be constant; the ISO C Standard doesn't
demand it. The maintainers of the GNU C Library (that are not the
maintainers of the GNU C Compiler) have decided to take advantage of
this permission to make stdout assignable, which eases redirection,
while giving up the ability to use it as an initializer. If you find
that a bad idea, this is not the place to complain. But I'm pretty
sure the maintainers of glibc would be glad to hear from you :-) :-)
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,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