https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67724
Bug ID: 67724 Summary: internal compiler error in stl_vector.h Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: aiju at phicode dot de Target Milestone: --- Compilation of the attached file with cygwin's gcc-4.9.3 build fails with an internal compilation error. To reproduce run $ gcc -c -Wall -Wextra -ggdb -MD -D_YOSYS_ -fPIC -std=gnu++0x -Os -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER yosys.ii Original command line and output $ gcc -o kernel/yosys.o -c -Wall -Wextra -ggdb -I. -I"./" -MD -D_YOSYS_ -fPIC -I/usr/local/include -std=gnu++0x -Os -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -I/usr/include/tcl8.5 -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER -v -save-temps kernel/yosys.cc Using built-in specs. COLLECT_GCC=gcc Target: x86_64-pc-cygwin Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.x86_64/src/gcc-4.9.3 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id Thread model: posix gcc version 4.9.3 (GCC) COLLECT_GCC_OPTIONS='-o' 'kernel/yosys.o' '-c' '-Wall' '-Wextra' '-ggdb' '-I' '.' '-I' './' '-MD' '-D' '_YOSYS_' '-fPIC' '-I' '/usr/local/include' '-std=gnu++11' '-Os' '-D' 'YOSYS_ENABLE_READLINE' '-D' 'YOSYS_ENABLE_PLUGINS' '-I' '/usr/include/tcl8.5' '-D' 'YOSYS_ENABLE_TCL' '-D' 'YOSYS_ENABLE_ABC' '-D' 'YOSYS_ENABLE_COVER' '-v' '-save-temps' '-mtune=generic' '-march=x86-64' /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/cc1plus.exe -E -quiet -v -I . -I ./ -I /usr/local/include -I /usr/include/tcl8.5 -MD kernel/yosys.d -MQ kernel/yosys.o -Dunix -idirafter /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../lib/../include/w32api -idirafter /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/lib/../lib/../../include/w32api -D _YOSYS_ -D YOSYS_ENABLE_READLINE -D YOSYS_ENABLE_PLUGINS -D YOSYS_ENABLE_TCL -D YOSYS_ENABLE_ABC -D YOSYS_ENABLE_COVER kernel/yosys.cc -mtune=generic -march=x86-64 -std=gnu++11 -Wall -Wextra -fPIC -ggdb -fworking-directory -Os -fpch-preprocess -o yosys.ii ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/include" ignoring duplicate directory "/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/lib/../lib/../../include/w32api" ignoring duplicate directory "./" ignoring duplicate directory "/usr/local/include" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: . /usr/include/tcl8.5 /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++ /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/x86_64-pc-cygwin /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/backward /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include /usr/local/include /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include-fixed /usr/include /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../lib/../include/w32api End of search list. kernel/yosys.cc:1:0: warning: -fPIC ignored for target (all code is position independent) /* ^ COLLECT_GCC_OPTIONS='-o' 'kernel/yosys.o' '-c' '-Wall' '-Wextra' '-ggdb' '-I' '.' '-I' './' '-MD' '-D' '_YOSYS_' '-fPIC' '-I' '/usr/local/include' '-std=gnu++11' '-Os' '-D' 'YOSYS_ENABLE_READLINE' '-D' 'YOSYS_ENABLE_PLUGINS' '-I' '/usr/include/tcl8.5' '-D' 'YOSYS_ENABLE_TCL' '-D' 'YOSYS_ENABLE_ABC' '-D' 'YOSYS_ENABLE_COVER' '-v' '-save-temps' '-mtune=generic' '-march=x86-64' /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/cc1plus.exe -fpreprocessed yosys.ii -quiet -dumpbase yosys.cc -mtune=generic -march=x86-64 -auxbase-strip kernel/yosys.o -ggdb -Os -Wall -Wextra -std=gnu++11 -version -fPIC -o yosys.s GNU C++ (GCC) version 4.9.3 (x86_64-pc-cygwin) compiled by GNU C version 4.9.3, GMP version 6.0.0, MPFR version 3.1.2-p11, MPC version 1.0.3 warning: MPFR header version 3.1.2-p11 differs from library version 3.1.3. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 kernel/yosys.cc:1:0: warning: -fPIC ignored for target (all code is position independent) /* ^ GNU C++ (GCC) version 4.9.3 (x86_64-pc-cygwin) compiled by GNU C version 4.9.3, GMP version 6.0.0, MPFR version 3.1.2-p11, MPC version 1.0.3 warning: MPFR header version 3.1.2-p11 differs from library version 3.1.3. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: a7b6fac296390f5db29d753ab65194e7 In file included from /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/vector:64:0, from ./kernel/yosys.h:44, from kernel/yosys.cc:20: /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/bits/stl_vector.h: In member function ‘void Yosys::CellTypes::setup_internals()’: /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/include/c++/bits/stl_vector.h:379:7: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7672 } ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.