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: possible bug? gcc version 2.95.1 19990809 (prerelease) C i386-linux


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


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