From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 869213858280; Tue, 25 Jul 2023 18:58:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 869213858280 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690311523; bh=LmUddF888yPLdlIesKEkKHZJT0z5p448L7wcLu0l//Q=; h=From:To:Subject:Date:From; b=o4YtZeNOIzKXyXspcuV7ILlyZ2NCyGqIjiNTt2PtOnonsSeBXii5MMITaPiWrnVNE YHRmTcc0b6DRbWqj0Xeie6pfC2P8FLftdMwM3cXRoR46DmqK9xbhpWY7E8y9sF1FKQ pkMaQpVVwQVNkYIsbKMkKNdVn+QQUH5Ij0CT9AAU= From: "ed at catmur dot uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110809] New: ICE: in unify, at cp/pt.cc:25226 with floating-point NTTPs Date: Tue, 25 Jul 2023 18:58:43 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ed at catmur dot uk 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110809 Bug ID: 110809 Summary: ICE: in unify, at cp/pt.cc:25226 with floating-point NTTPs Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ed at catmur dot uk Target Milestone: --- #include using A =3D double; template struct S {}; auto x =3D boost::hana::make_map( boost::hana::make_pair(boost::hana::type_c>, 1), boost::hana::make_pair(boost::hana::type_c>, 2))[ boost::hana::type_c>]; /opt/compiler-explorer/libs/boost_1_82_0/boost/hana/detail/hash_table.hpp:5= 1:62: internal compiler error: in unify, at cp/pt.cc:25226 51 | using type =3D decltype(detail::find_indices_impl(std::declval())); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ 0x246af2e internal_error(char const*, ...) ???:0 0xac8ab6 fancy_abort(char const*, int, char const*) ???:0 0xd01e11 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bo= ol, bool) ???:0 0xaf7db9 build_new_function_call(tree_node*, vec**, int) ???:0 0xd2379c finish_call_expr(tree_node*, vec**, b= ool, bool, int) ???:0 0xcddfef tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xcde6fc tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xd06d50 instantiate_class_template(tree_node*) ???:0 0xd5954f complete_type_or_maybe_complain(tree_node*, tree_node*, int) ???:0 0xcdf1a7 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xcde6fc tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xd06d50 instantiate_class_template(tree_node*) ???:0 0xd5954f complete_type_or_maybe_complain(tree_node*, tree_node*, int) ???:0 0xcdf1a7 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xcde6fc tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xcd6618 instantiate_decl(tree_node*, bool, bool) ???:0 0xbb8461 maybe_instantiate_decl(tree_node*) ???:0 0xbb9ebf mark_used(tree_node*, int) ???:0 0xaf673e build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int) ???:0 0xd22eaf finish_call_expr(tree_node*, vec**, b= ool, bool, int) ???:0 Changing `A` to `int` makes it compile, so this is a problem with floating-point NTTPs.=