public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pjfloyd at wanadoo dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/103516] New: internal compiler error in comptypes, typeck.c:1558
Date: Wed, 01 Dec 2021 09:32:01 +0000	[thread overview]
Message-ID: <bug-103516-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-12-01  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01  9:32 pjfloyd at wanadoo dot fr [this message]
2021-12-01  9:34 ` [Bug c++/103516] " marxin at gcc dot gnu.org
2021-12-01  9:38 ` pinskia at gcc dot gnu.org
2021-12-01  9:47 ` pjfloyd at wanadoo dot fr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103516-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).