From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90C503896837; Wed, 24 Feb 2021 08:37:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90C503896837 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99239] New: [modules] internal compiler error: in duplicate_decls Date: Wed, 24 Feb 2021 08:37:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexander.lelyakin at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2021 08:37:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99239 Bug ID: 99239 Summary: [modules] internal compiler error: in duplicate_decls Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alexander.lelyakin at googlemail dot com Target Milestone: --- g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cstdio g++ -std=3Dc++20 -fmodules-ts -x c++-system-header string g++ -std=3Dc++20 -fmodules-ts -x c++-system-header filesystem ----- In file included from /usr/local/include/c++/11.0.0/bits/functexcept.h:40, from /usr/local/include/c++/11.0.0/bits/stl_algobase.h:60, from /usr/local/include/c++/11.0.0/bits/char_traits.h:39, from /usr/local/include/c++/11.0.0/string:40, of module /usr/local/include/c++/11.0.0/string, imported at /usr/local/include/c++/11.0.0/stdexcept:39, included from /usr/local/include/c++/11.0.0/system_error:41, from /usr/local/include/c++/11.0.0/bits/fs_fwd.h:35, from /usr/local/include/c++/11.0.0/filesystem:44: /usr/local/include/c++/11.0.0/bits/locale_classes.h:461:11: internal compil= er error: in duplicate_decls, at cp/decl.c:2023 461 | __catch(...) | ^~~~~~~ 0x6b37fc duplicate_decls(tree_node*, tree_node*, bool, bool) ../../gcc/gcc/cp/decl.c:2023 0xa83ceb check_module_override ../../gcc/gcc/cp/name-lookup.c:3615 0xa83ceb do_pushdecl ../../gcc/gcc/cp/name-lookup.c:3734 0xa848d1 do_pushdecl ../../gcc/gcc/cp/name-lookup.c:4851 0xa848d1 do_pushdecl_with_scope ../../gcc/gcc/cp/name-lookup.c:4851 0xa84b02 pushdecl_namespace_level(tree_node*, bool) ../../gcc/gcc/cp/name-lookup.c:6213 0xa85bf4 pushdecl_top_level(tree_node*) ../../gcc/gcc/cp/name-lookup.c:8675 0xa072b2 declare_library_fn ../../gcc/gcc/cp/except.c:172 0xa07e9d do_end_catch ../../gcc/gcc/cp/except.c:254 0xa07e9d push_eh_cleanup ../../gcc/gcc/cp/except.c:270 0xa07e9d expand_start_catch_block(tree_node*) ../../gcc/gcc/cp/except.c:408 0xb42764 finish_handler_parms(tree_node*, tree_node*) ../../gcc/gcc/cp/semantics.c:1526 0xac95a3 cp_parser_handler ../../gcc/gcc/cp/parser.c:27094 0xaa9bd7 cp_parser_handler_seq ../../gcc/gcc/cp/parser.c:27069 0xaa9bd7 cp_parser_try_block ../../gcc/gcc/cp/parser.c:27023 0xaa9bd7 cp_parser_statement ../../gcc/gcc/cp/parser.c:11654 0xaaaf3d cp_parser_statement_seq_opt ../../gcc/gcc/cp/parser.c:12112 0xaab018 cp_parser_compound_statement ../../gcc/gcc/cp/parser.c:12062 0xacaf9d cp_parser_implicitly_scoped_statement ../../gcc/gcc/cp/parser.c:13568 0xaaa65d cp_parser_selection_statement ../../gcc/gcc/cp/parser.c:12290 ---- g++ (GCC) 11.0.0 20210223 (experimental)=