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

            Bug ID: 82198
           Summary: clang compile fails with g++ 8
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: darpeer at hotmail dot com
  Target Milestone: ---

cd /extra/darse/llvm-svn/objects/tools/lld/ELF &&
/home/darse/ubuntu-17.04/bin/g++  -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/extra/darse/llvm-svn/objects/tools/lld/ELF
-I/extra/darse/llvm-svn/llvm/tools/lld/ELF
-I/extra/darse/llvm-svn/llvm/tools/lld/include
-I/extra/darse/llvm-svn/objects/tools/lld/include -I/usr/include/libxml2
-I/extra/darse/llvm-svn/objects/include -I/extra/darse/llvm-svn/llvm/include 
-fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-ffunction-sections -fdata-sections -O3 -DNDEBUG    -fno-exceptions -fno-rtti
-o CMakeFiles/lldELF.dir/MapFile.cpp.o -c
/extra/darse/llvm-svn/llvm/tools/lld/ELF/MapFile.cpp
/extra/darse/llvm-svn/llvm/tools/lld/ELF/MapFile.cpp: In lambda function:
/extra/darse/llvm-svn/llvm/tools/lld/ELF/MapFile.cpp:99:33: internal compiler
error: Segmentation fault
     OS << indent(2) << toString(*Syms[I]);
0xf4b50f crash_signal
        ../../../src/gcc/gcc/toplev.c:341
0x946e32 hash_table<hash_map<tree_node*, tree_node*,
simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*>
>::hash_entry, xcallocator>::find_slot_with_hash(tree_node* const&, unsigned
int, insert_option)
        ../../../src/gcc/gcc/hash-table.h:878
0x946ffc hash_map<tree_node*, tree_node*,
simple_hashmap_traits<default_hash_traits<tree_node*>, tree_node*>
>::put(tree_node* const&, tree_node* const&)
        ../../../src/gcc/gcc/hash-map.h:136
0xa47b29 register_local_specialization(tree_node*, tree_node*)
        ../../../src/gcc/gcc/cp/pt.c:1898
0xa47b29 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../../src/gcc/gcc/cp/pt.c:18142
0xa45aae tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../../src/gcc/gcc/cp/pt.c:17900
0xa45ee5 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../../src/gcc/gcc/cp/pt.c:17522
0xa46bd5 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../../src/gcc/gcc/cp/pt.c:17059
0xa46bd5 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../../src/gcc/gcc/cp/pt.c:17059
0xa4605d tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../../src/gcc/gcc/cp/pt.c:17538
0x9444eb fold_non_dependent_expr(tree_node*)
        ../../../src/gcc/gcc/cp/constexpr.c:4955
0xa393b1 build_non_dependent_expr(tree_node*)
        ../../../src/gcc/gcc/cp/pt.c:24944
0xabd582 build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code,
tree_node*, tree_code, tree_node**, int)
        ../../../src/gcc/gcc/cp/typeck.c:3954
0xa00fde cp_parser_binary_expression
        ../../../src/gcc/gcc/cp/parser.c:9271
0xa016a4 cp_parser_assignment_expression
        ../../../src/gcc/gcc/cp/parser.c:9404
0xa03d48 cp_parser_expression
        ../../../src/gcc/gcc/cp/parser.c:9573
0xa042e8 cp_parser_expression_statement
        ../../../src/gcc/gcc/cp/parser.c:11071
0xa0a9c3 cp_parser_statement
        ../../../src/gcc/gcc/cp/parser.c:10887
0xa0ba70 cp_parser_statement_seq_opt
        ../../../src/gcc/gcc/cp/parser.c:11214
0xa0c26e cp_parser_lambda_body
        ../../../src/gcc/gcc/cp/parser.c:10624
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to