http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55926



             Bug #: 55926

           Summary: Internal compiler error with static volatile pointer

    Classification: Unclassified

           Product: gcc

           Version: 4.7.1

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: p...@laposte.net





Created attachment 29135

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29135

Preprocessed source file



Following error:

Error.cpp: In function 'void f()':

Error.cpp:3:29: error: unrecognizable insn:

(insn 8 7 9 3 (set (mem/v/f/c:SI (symbol_ref:SI ("_ZL2fd") [flags 0x2]

<var_decl 051d4f60 fd>) [0 fd+0 S4 A32])

        (const:SI (plus:SI (symbol_ref:SI ("_iob") [flags 0x440] <var_decl

05152ea0 _iob>)

                (const_int 32 [0x20])))) Error.cpp:3 -1

     (nil))

Error.cpp:3:29: internal compiler error: in extract_insn, at recog.c:2123

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://tdm-gcc.tdragon.net/bugs> for instructions.





is produced with following version:

Using built-in specs.

COLLECT_GCC=mingw32-gcc

COLLECT_LTO_WRAPPER=c:/mingw32-tdm4.7/bin/../libexec/gcc/mingw32/4.7.1/lto-wrapper.exe

Target: mingw32

Configured with: ../../src/gcc-4.7.1/configure --build=mingw32

--enable-languages=c,c++,ada,fortran,objc,obj-c++ --enable-threads=win32

--enable-libgomp --enable-lto --enable-fully-dynamic-string

--enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-gnu-ld

--disable-nls --disable-win32-registry --disable-symvers

--disable-build-poststage1-with-cxx --disable-werror --prefix=/mingw32tdm

--with-local-prefix=/mingw32tdm --enable-cxx-flags='-fno-function-sections

-fno-data-sections' --with-pkgversion=tdm-1 --enable-sjlj-exceptions

--with-bugurl=http://tdm-gcc.tdragon.net/bugs

Thread model: win32

gcc version 4.7.1 (tdm-1)





with following compilation command:

gcc Error.cpp





when Error.cpp contains only:

#include <stdio.h>

static FILE *volatile fd;

void f(void) { fd = stdout; }





Preprocessing of these 3 lines in attachement

Reply via email to