[Bug c++/106978] New: Internal compiler error including unordered_map

ben at benfulton dot net gcc-bugzilla@gcc.gnu.org
Tue Sep 20 14:27:30 GMT 2022


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

            Bug ID: 106978
           Summary: Internal compiler error including unordered_map
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ben at benfulton dot net
  Target Milestone: ---

Created attachment 53593
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53593&action=edit
ii file

$ gcc -v -save-temps temp.cpp
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/N/soft/rhel7/gcc/12.1.0
--with-long-double-128 --enable-host-shared --disable-multilib --enable-threads
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.1.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic' '-march=x86-64'
'-dumpdir' 'a-'

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/cc1plus
-E -quiet -v -iprefix
/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/
-D_GNU_SOURCE temp.cpp -mtune=generic -march=x86-64 -fpch-preprocess -o
a-temp.ii
ignoring nonexistent directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/x86_64-pc-linux-gnu"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/backward"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include"
ignoring duplicate directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include-fixed"
ignoring nonexistent directory
"/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../x86_64-pc-linux-gnu/include"
ignoring duplicate directory "/N/soft/rhel7/gcc/12.1.0/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory
"/N/soft/rhel7/gcc/12.1.0/include/c++/12.1.0/x86_64-pc-linux-gnu"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/x86_64-pc-linux-gnu

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/../../../../include/c++/12.1.0/backward

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/x86_64-pc-linux-gnu/12.1.0/include-fixed
 /usr/local/include
 /geode2/soft/hps/rhel7/gcc/12.1.0/bin/../lib/gcc/../../include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic' '-march=x86-64'
'-dumpdir' 'a-'

/geode2/soft/hps/rhel7/gcc/12.1.0/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/cc1plus
-fpreprocessed a-temp.ii -quiet -dumpdir a- -dumpbase temp.cpp -dumpbase-ext
.cpp -mtune=generic -march=x86-64 -version -o a-temp.s
GNU C++17 (GCC) version 12.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 12.1.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++17 (GCC) version 12.1.0 (x86_64-pc-linux-gnu)
        compiled by GNU C version 12.1.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version isl-0.23-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 0073d495d55b480decdde07e31290358
In file included from
/geode2/soft/hps/rhel7/gcc/12.1.0/include/c++/12.1.0/bits/hashtable.h:35,
                 from
/geode2/soft/hps/rhel7/gcc/12.1.0/include/c++/12.1.0/unordered_map:46,
                 from temp.cpp:1:
/geode2/soft/hps/rhel7/gcc/12.1.0/include/c++/12.1.0/bits/hashtable_policy.h:502:5:
internal compiler error: Illegal instruction
  502 |     _Prime_rehash_policy(float __z = 1.0) noexcept
      |     ^~~~~~~~~~~~~~~~~~~~
0xd96f16 crash_signal
        ../.././gcc/toplev.cc:322
0xd02913 real_from_string(real_value*, char const*)
        ../.././gcc/real.cc:2110
0xd032eb real_from_string3(real_value*, char const*, format_helper)
        ../.././gcc/real.cc:2176
0x8d0a3d interpret_float
        ../.././gcc/c-family/c-lex.cc:1035
0x8d20f8 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
        ../.././gcc/c-family/c-lex.cc:517
0x7afb36 cp_lexer_get_preprocessor_token
        ../.././gcc/cp/parser.cc:864
0x7febcf cp_lexer_new_main
        ../.././gcc/cp/parser.cc:663
0x7febcf c_parse_file()
        ../.././gcc/cp/parser.cc:48064
0x8eaf19 c_common_parse_file()
        ../.././gcc/c-family/c-opts.cc:1240
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.


More information about the Gcc-bugs mailing list