From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0283D3857C43; Wed, 21 Dec 2022 22:19:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0283D3857C43 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671661141; bh=1/XMMPtNIVnvG2kt5r3e4G9StmyU0i8M9IbzpmZ/Hho=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WMqDmFUxj2yPsjpKHVPJb12w6DLdA422HbmrMpXBHqxgMiJ9pY7BD8Li2EaYYSvq5 xTy2qctNWhxS8EOUoT7foj7X2zH+kVT167zr/AiZJ7hB3n9TE2eVEYfcw6USHXBoeL W9OB4m+xxjHS2tFDf5Rr034GA21bzm17wag/p9Nc= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108047] [13 Regression] ICE: unexpected expression of kind implicit_conv_expr since r13-4564-gd081807d8d70e3e8 Date: Wed, 21 Dec 2022 22:19:00 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108047 --- Comment #6 from Sergei Trofimovich --- Encountered very similar ICE, this time on toml library on this week's gcc-= 13 master. Reduced it down to the following: // $ cat bug.cc #include #include void format_underline(std::vector); template void parse_key_value_pair(void) { format_underline({""}); } $ g++ -c bug.cc ... bug.cc: In function 'void parse_key_value_pair()': bug.cc:7:51: internal compiler error: unexpected expression '(std::__cxx11::basic_string)""' of kind implicit_conv_expr 7 | void parse_key_value_pair(void) { format_underline({""}); } | ~~~~~~~~~~~~~~~~^~~~~~ 0x1cbb294 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, = char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x1cbbee6 internal_error(char const*, ...) ???:0 0x79c770 cxx_eval_constant_expression(constexpr_ctx const*, tree_node*, value_cat, bool*, bool*, tree_node**) ???:0 0x7a1572 cxx_eval_outermost_constant_expr(tree_node*, bool, bool, bool, boo= l, tree_node*) ???:0 0x7a52e6 maybe_constant_init_1(tree_node*, tree_node*, bool, bool) ???:0 0x77a767 build_user_type_conversion_1(tree_node*, tree_node*, int, int) ???:0=