https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103516
Bug ID: 103516
Summary: internal compiler error in comptypes, typeck.c:1558
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: pjfloyd at wanadoo dot fr
Target Milestone: ---
GCC from source
commit 26493af58a1297d5d9fbb061694416deaee71220
OS:
Red Hat Enterprise Linux Workstation release 7.6 (Maipo)
CPU:
Model name: Intel(R) Xeon(R) CPU X5667 @ 3.07GHz
[ 92%] Building CXX object cxx/src/CMakeFiles/cxx_static.dir/barrier.cpp.o
In file included from
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__utility/pair.h:13,
from
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/utility:228,
from
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__functional_base:26,
from
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/memory:665,
from
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/barrier:52,
from
/ams/nobackup/pafloyd/foss/llvm-project/libcxx/src/barrier.cpp:13:
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__compare/synth_three_way.h:28:45:
warning: 'always_inline' attribute ignored [-Wattributes]
28 | _LIBCPP_HIDE_FROM_ABI inline constexpr auto __synth_three_way =
| ^~~~~~~~~~~~~~~~~
In file included from
/ams/nobackup/pafloyd/foss/llvm-project/libcxx/src/barrier.cpp:9:
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__config:787:35:
internal compiler error: canonical types differ for identical types
'std::__Fuzzer::basic_string<_CharT, _Traits, _Allocator>&
(std::__Fuzzer::basic_string<_CharT, _Traits,
_Allocator>::)(std::__Fuzzer::basic_string<_CharT, _Traits, _Allocator>&&)
noexcept (std::__Fuzzer::__noexcept_move_assign_container<_Allocator,
std::__Fuzzer::allocator_traits<_Allocator> >::value)' and
'std::__Fuzzer::basic_string<_CharT, _Traits, _Allocator>&
(std::__Fuzzer::basic_string<_CharT, _Traits,
_Allocator>::)(std::__Fuzzer::basic_string<_CharT, _Traits, _Allocator>&&)
noexcept (std::__Fuzzer::__noexcept_move_assign_container<_Allocator,
std::__Fuzzer::allocator_traits<_Allocator> >::value)'
787 | # define _NOEXCEPT_(x) noexcept(x)
| ^
/ams/nobackup/pafloyd/foss/llvm-project/build/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/string:2476:5:
note: in expansion of macro '_NOEXCEPT_'
2476 | _NOEXCEPT_((__noexcept_move_assign_container<_Allocator,
__alloc_traits>::value))
| ^~~~~~~~~~
0xc3a55f comptypes(tree_node*, tree_node*, int)
../../gcc/cp/typeck.c:1558
0xa73d7c duplicate_decls(tree_node*, tree_node*, bool, bool)
../../gcc/cp/decl.c:2409
0xa7ba3f grokfndecl
../../gcc/cp/decl.c:10351
0xa80762 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
../../gcc/cp/decl.c:14134
0xa85446 start_function(cp_decl_specifier_seq*, cp_declarator const*,
tree_node*)
../../gcc/cp/decl.c:17143
0xb8078f cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/cp/parser.c:31035
0xb8078f cp_parser_init_declarator
../../gcc/cp/parser.c:22510
0xb88a03 cp_parser_single_declaration
../../gcc/cp/parser.c:31666
0xb88b56 cp_parser_template_declaration_after_parameters
../../gcc/cp/parser.c:31231
0xb893d0 cp_parser_explicit_template_declaration
../../gcc/cp/parser.c:31497
0xb8bd71 cp_parser_declaration
../../gcc/cp/parser.c:14849
0xb8b349 cp_parser_toplevel_declaration
../../gcc/cp/parser.c:14939
0xb8b349 cp_parser_declaration_seq_opt
../../gcc/cp/parser.c:14692
0xb8b792 cp_parser_namespace_body
../../gcc/cp/parser.c:21313
0xb8b792 cp_parser_namespace_definition
../../gcc/cp/parser.c:21291
0xb8be97 cp_parser_declaration
../../gcc/cp/parser.c:14898
0xb8b349 cp_parser_toplevel_declaration
../../gcc/cp/parser.c:14939
0xb8b349 cp_parser_declaration_seq_opt
../../gcc/cp/parser.c:14692
0xb8b792 cp_parser_namespace_body
../../gcc/cp/parser.c:21313
0xb8b792 cp_parser_namespace_definition
../../gcc/cp/parser.c:21291
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.
make[5]: *** [cxx/src/CMakeFiles/cxx_static.dir/barrier.cpp.o] Error 1
make[4]: *** [cxx/src/CMakeFiles/cxx_static.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: ***
[projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-stamps/libcxx_fuzzer_x86_64-build]
Error 2
make[1]: ***
[projects/compiler-rt/lib/fuzzer/CMakeFiles/libcxx_fuzzer_x86_64-build.dir/all]
Error 2
make: *** [all] Error 2