Non-constant initializers
Andreas Schwab
schwab@issan.informatik.uni-dortmund.de
Wed Apr 22 03:17:00 GMT 1998
Ross Alexander <r.alexander@auckland.ac.nz> writes:
|> It seems that code like
|> #include <stdio.h>
|> FILE *f = stdin;
|> int main()
|> {
|> ..
|> }
|> fail because of non-constant initializer. This did not happen before.
|> Is there any way to tell egcs-980321 how to handle this, or should I
|> upgrade.
You should not write that. ISO C does not require std{in,out,err} to be a
constant expression. This has nothing to do with the compiler, it's a
library issue.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org
More information about the Gcc
mailing list