From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20967 invoked by alias); 29 Apr 2005 05:46:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20946 invoked by uid 48); 29 Apr 2005 05:46:14 -0000 Date: Fri, 29 Apr 2005 05:46:00 -0000 From: "ch dot ehrlicher at gmx dot de" To: gcc-bugs@gcc.gnu.org Message-ID: <20050429054610.21275.ch.ehrlicher@gmx.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/21275] New: gcc 4.0.0 crash with mingw when using stdout in global var X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg04033.txt.bz2 List-Id: This small piece of code doesn't work with gcc 4.0.0, but with 3.4/3.3: ----------------------------------------- #include #include FILE* out = stdout; int main( int argc, char **argv ) { // out = stdout; // this is ok return 0; } ----------------------------------------- Here the output: C:\tmp>gcc main.c main.c:4: error: initializer element is not constant C:\tmp>g++ main.c main.c:9: internal compiler error: output_operand: invalid expression as operand Please submit a full bug report, with preprocessed source if appropriate. See for instructions. C:\tmp>gcc -v Using built-in specs. Target: mingw32 Configured with: ../gcc-4.0.0/configure --with-gcc --with-gnu-ld --with-gnu-as - -host=mingw32 --target=mingw32 --prefix=/mingw --enable-languages=c,c++ --enable -threads --disable-nls --disable-win32-registry --disable-shared --enable-sjlj-e xceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enab le-libstdcxx-debug : (reconfigured) ../gcc-4.0.0/configure --disable-libada --wi th-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/min gw --enable-languages=c,c++ --enable-threads --disable-nls --disable-win32-regis try --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 4.0.0 -- Summary: gcc 4.0.0 crash with mingw when using stdout in global var Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ch dot ehrlicher at gmx dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21275