[Bug c/21275] gcc 4.0.0 crash with mingw when using stdout in global var

2005-04-30 Thread dannysmith at users dot sourceforge dot net
--- Additional Comments From dannysmith at users dot sourceforge dot net 2005-04-30 09:08 --- Oops, I reduced the code in comment #1 too much. This shows the problem. //dllimport_array.C // This causes 'initializer element is not constant' error in C, //

[Bug c/21275] gcc 4.0.0 crash with mingw when using stdout in global var

2005-04-29 Thread dannysmith at users dot sourceforge dot net
--- Additional Comments From dannysmith at users dot sourceforge dot net 2005-04-29 06:11 --- Here is reduced testcase: // int attribute ((dllimport)) foo; extern int* _imp__foo; int a = *_imp__foo; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21275