From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 13DC5385802A; Tue, 30 Mar 2021 20:01:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13DC5385802A From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99283] [modules] ICE in assert_definition, at cp/module.cc:4608 Date: Tue, 30 Mar 2021 20:01:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Tue, 30 Mar 2021 20:01:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99283 --- Comment #16 from Alexander Lelyakin --- Still reproduces: /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header system_er= ror /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header type_trai= ts /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header ccomplex ---- In file included from /usr/local/include/c++/11.0.1/ios:42, from /usr/local/include/c++/11.0.1/istream:38, from /usr/local/include/c++/11.0.1/sstream:38, from /usr/local/include/c++/11.0.1/complex:45, from /usr/local/include/c++/11.0.1/ccomplex:39: /usr/local/include/c++/11.0.1/bits/ios_base.h:205:69: internal compiler err= or: in assert_definition, at cp/module.cc:4491 205 | template <> struct is_error_code_enum : public true_type= { }; | = ^ 0x6e20eb trees_in::assert_definition(tree_node*, bool) ../../gcc/gcc/cp/module.cc:4491 0xa5db60 trees_in::odr_duplicate(tree_node*, bool) ../../gcc/gcc/cp/module.cc:11323 0xa6d21f trees_in::read_function_def(tree_node*, tree_node*) ../../gcc/gcc/cp/module.cc:11403 0xa6f711 module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14806 0xa6fd8d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18068 0xa6fe4f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18726 0xa6a0d0 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9661 0xa6aee6 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6662 0xa68937 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7057 0xa68937 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8927 0xa68d6f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9145 0xa6ab71 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6413 0xa68937 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7057 0xa68937 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8927 0xa68d6f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9145 0xa6ab71 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6413 0xa68937 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7057 0xa68937 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8927 0xa68d6f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9145 0xa6ab71 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6413 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ---- g++ (GCC) 11.0.1 20210330 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---- commit 5f3c6027257118469a722816e228394b5978ddb0 (HEAD -> master, origin/tru= nk, origin/master, origin/HEAD) Author: Nathan Sidwell Date: Tue Mar 30 09:45:59 2021 -0700 c++: duplicate const static members [PR 99283]=