From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EAED538708E8; Tue, 9 Mar 2021 07:48:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAED538708E8 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvOTk0ODRdIE5ldzogW21vZHVsZXNdIElDRSBzYW1l?= =?UTF-8?B?IGNhbm9uaWNhbCB0eXBlIG5vZGUgZm9yIGRpZmZlcmVudCB0eXBlcyDigJh2?= =?UTF-8?B?b2lk4oCZIGFuZCDigJhzdGQ6Ol9fdm9pZF90PF9PcDxfQXJncyAuLi4+ID4=?= =?UTF-8?B?4oCZ?= Date: Tue, 09 Mar 2021 07:48:03 +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: Tue, 09 Mar 2021 07:48:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99484 Bug ID: 99484 Summary: [modules] ICE same canonical type node for different types =E2=80=98void=E2=80=99 and =E2=80=98std::__void_t= <_Op<_Args ...> >=E2=80=99 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 cstdalign g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cuchar g++ -std=3Dc++20 -fmodules-ts -x c++-system-header filesystem g++ -std=3Dc++20 -fmodules-ts -x c++-system-header type_traits g++ -std=3Dc++20 -fmodules-ts -x c++-system-header clocale g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cstdarg g++ -std=3Dc++20 -fmodules-ts -x c++-system-header complex g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cfloat g++ -std=3Dc++20 -fmodules-ts -x c++-system-header iomanip ---- In module /usr/local/include/c++/11.0.1/type_traits, imported at /usr/local/include/c++/11.0.1/bits/move.h:57, included from /usr/local/include/c++/11.0.1/bits/stl_pair.h:59, from /usr/local/include/c++/11.0.1/bits/stl_algobase.h:64, from /usr/local/include/c++/11.0.1/bits/char_traits.h:39, from /usr/local/include/c++/11.0.1/string:40, from /usr/local/include/c++/11.0.1/bits/locale_classes.h:4= 0, from /usr/local/include/c++/11.0.1/bits/ios_base.h:41, from /usr/local/include/c++/11.0.1/iomanip:40: /usr/local/include/c++/11.0.1/type_traits: In substitution of =E2=80=98temp= late class _Op, class ... _Args> using __detected_= or_t =3D typename std::__detected_or<_Default, _Op, _Args ...>::type [with _Defa= ult =3D typename std::__get_first_arg<_Tp>::type; _Op =3D std::pointer_traits<_Ptr>::__element_type; _Args =3D {_Ptr}]=E2=80=99: /usr/local/include/c++/11.0.1/bits/ptr_traits.h:105:65: required from here /usr/local/include/c++/11.0.1/type_traits:2565:11: internal compiler error: same canonical type node for different types =E2=80=98void=E2=80=99 and =E2=80=98std::__void_t<_Op<_Args ...> >=E2=80=99 2565 | using __detected_or_t | ^~~~~~~~~~~~~~~ 0xb7f5fd comptypes(tree_node*, tree_node*, int) ../../gcc/gcc/cp/typeck.c:1554 0xae491f template_args_equal(tree_node*, tree_node*, bool) ../../gcc/gcc/cp/pt.c:9207 0xae4478 template_args_equal(tree_node*, tree_node*, bool) ../../gcc/gcc/cp/pt.c:9170 0xae4478 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node*= *, bool) ../../gcc/gcc/cp/pt.c:9254 0xae4478 comp_template_args(tree_node*, tree_node*, tree_node**, tree_node*= *, bool) ../../gcc/gcc/cp/pt.c:9234 0xaedd93 spec_hasher::equal(spec_entry*, spec_entry*) ../../gcc/gcc/cp/pt.c:1725 0xb338b6 hash_table::verify(spec_entry* const&, unsigned int) ../../gcc/gcc/hash-table.h:1032 0xb33e5e hash_table::find_slot_with_hash(spec_entry* const&, unsigned int, insert_option) ../../gcc/gcc/hash-table.h:968 0xaf0d3b add_mergeable_specialization(bool, spec_entry*, tree_node*, unsign= ed int) ../../gcc/gcc/cp/pt.c:30018 0xa6ec5f trees_in::decl_value() ../../gcc/gcc/cp/module.cc:8068 0xa66d17 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9174 0xa6d36b module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14858 0xa6d86d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18125 0xa6d92f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18779 0xa70b67 lazy_load_pendings(tree_node*) ../../gcc/gcc/cp/module.cc:18872 0xb2017f lookup_template_class_1 ../../gcc/gcc/cp/pt.c:9799 0xb22516 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) ../../gcc/gcc/cp/pt.c:10237 0xb22516 tsubst_aggr_type ../../gcc/gcc/cp/pt.c:13572 0xb16883 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/gcc/cp/pt.c:16033 0xb012a0 tsubst_decl ../../gcc/gcc/cp/pt.c:14798 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 20210308 (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.=