From: cgf AT cygnus DOT com (Christopher G. Faylor) Subject: Re: Compiler bug? 29 May 1998 12:21:30 GMT Message-ID: <6km98a$rfe$1@cronkite.cygnus.com> References: <01BD88B7 DOT E1BC03F0 DOT jimen AT adtech-inc DOT com> <356D1AA9 DOT 672790A8 DOT cygnus DOT gnu-win32 AT uni-duesseldorf DOT de> X-Newsreader: trn 4.0-test63 (15 March 1998) In article <356D1AA9 DOT 672790A8 DOT cygnus DOT gnu-win32 AT uni-duesseldorf DOT de>, Stipe Tolj wrote: >Jimen Ching wrote: > >> I can't compile this code with b19. Is this supposed to be allowed? >> >> #include >> FILE *xyz = stdin; >> int main() { return 0; } > >hmm, gcc says you need an constant initializer for an variable. > >My gcc 2.7.2.1 on FreeBSD 3.0 machine compiles without any comment. Is it a >bug? No. It's not a constant. -- cgf AT cygnus DOT com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada