https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67487

            Bug ID: 67487
           Summary: ICE: Illegal instruction, <complex> header
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mazen....@uni-ulm.de
  Target Milestone: ---

Created attachment 36303
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36303&action=edit
preprocessed source

Code compiles fine without the "-std=c++11" option. The source code simply
includes the complex header (#include <complex>) and does nothing else, i.e.,
empty main.

Output of the command line:


[mazenali@bloob ~]$ g++ -std=c++11 -save-temps -v hello.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/cm/local/apps/gcc/5.1.0/libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.1.0/configure --prefix=/cm/local/apps/gcc/5.1.0
--enable-languages=c,c++,fortran
--with-gmp-include=/root/rpmbuild/BUILD/gcc-5.1.0-obj/../gcc-5.1.0/our-gmp
--with-gmp-lib=/root/rpmbuild/BUILD/gcc-5.1.0-obj/../gcc-5.1.0/our-gmp/.libs
--with-mpc-include=/root/rpmbuild/BUILD/gcc-5.1.0-obj/../gcc-5.1.0/our-mpc/src
--with-mpc-lib=/root/rpmbuild/BUILD/gcc-5.1.0-obj/../gcc-5.1.0/our-mpc/src/.libs
--with-mpfr-include=/root/rpmbuild/BUILD/gcc-5.1.0-obj/../gcc-5.1.0/our-mpfr/src
--with-mpfr-lib=/root/rpmbuild/BUILD/gcc-5.1.0-obj/../gcc-5.1.0/our-mpfr/src/.libs
Thread model: posix
gcc version 5.1.0 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /cm/local/apps/gcc/5.1.0/libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/cc1plus -E
-quiet -v -D_GNU_SOURCE hello.cpp -mtune=generic -march=x86-64 -std=c++11
-fpch-preprocess -o hello.ii
ignoring nonexistent directory
"/cm/local/apps/gcc/5.1.0/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /home/mazenali/InstalledTools/root/usr/include
 /cm/shared/apps/openblas/0.2.14/include/openblas

/cm/local/apps/gcc/5.1.0/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0

/cm/local/apps/gcc/5.1.0/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0/x86_64-unknown-linux-gnu

/cm/local/apps/gcc/5.1.0/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0/backward
 /cm/local/apps/gcc/5.1.0/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include
 /usr/local/include
 /cm/local/apps/gcc/5.1.0/include
 /cm/local/apps/gcc/5.1.0/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-std=c++11' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
 /cm/local/apps/gcc/5.1.0/libexec/gcc/x86_64-unknown-linux-gnu/5.1.0/cc1plus
-fpreprocessed hello.ii -quiet -dumpbase hello.cpp -mtune=generic -march=x86-64
-auxbase hello -std=c++11 -version -o hello.s
GNU C++11 (GCC) version 5.1.0 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.1.0, GMP version 5.1.3, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++11 (GCC) version 5.1.0 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.1.0, GMP version 5.1.3, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 2ba336c0aa0a4c2023d25b6ee96c100c
In file included from hello.cpp:1:0:
/cm/local/apps/gcc/5.1.0/include/c++/5.1.0/complex:1587:7: internal compiler
error: Illegal instruction
       const _Tp __pi_2 = 1.5707963267948966192313216916397514L;
       ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to