Red Hat Bugzilla – Bug 3253
stdin, stdout, sterr in stdio.h no longer usable as initializers
Last modified: 2008-05-01 11:37:50 EDT
In glibc-devel-2.1.1-6 a gratuitous change to
stdio.h/libio.h was made which prevents stdin, stderr and
stdout from being used as initializers.
The code below complies on every system I've tried *except*
the latest glibc-devel-2.1.1.
FILE *x = stdout;
An (unnacceptable) workaround is to use
*** This bug has been marked as a duplicate of 3137 ***