From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C3DA5387540F; Mon, 3 Jun 2024 15:25:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3DA5387540F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717428334; bh=LEPop08A9zKwZNk24ZZpw6AOYd021Jnp/z3tSy0xJGU=; h=From:To:Subject:Date:From; b=d7VNV6KcAPf53pdJRo74RafElYzbGX0QfeHOxwzj2CpfBQtm5ffJG1anAEFiCK/jI fVERGWxiE3NNkcSpY4wY+FA7ZbQai1q1tvWFctvbsHj6k9Ox7G4UbkSKcffBZ3N91r wSSjHMngJjlnvVb0c/hEND8+6wub4iVdIhr+J8P8= From: "blubban at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115331] New: [15 regression] ICE-on-invalid passing a typoed lambda to a list-initializer Date: Mon, 03 Jun 2024 15:25:34 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blubban at gmail 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115331 Bug ID: 115331 Summary: [15 regression] ICE-on-invalid passing a typoed lambda to a list-initializer Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: blubban at gmail dot com Target Milestone: --- struct has_ctor { has_ctor(auto arg) {} }; void aaa() { has_ctor{[]<(){}}; // typo intentional } -std=3Dc++20 : In function 'void aaa()': :8:17: error: expected identifier before '(' token 8 | has_ctor{[]<(){}}; | ^ :8:19: error: expected '>' before '{' token 8 | has_ctor{[]<(){}}; | ^ : In instantiation of 'has_ctor::has_ctor(auto:1) [with auto:1 =3D aaa()::]': :3:5: required from here 3 | has_ctor(auto arg) {} | ^~~~~~~~ :3:5: internal compiler error: tree check: expected tree that conta= ins 'decl common' structure, have 'error_mark' in decl_template_parm_check, at cp/cp-tree.h:5138 0x269996c internal_error(char const*, ...) ???:0 0x96eb0f tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ???:0 0xba20c6 mangle_decl(tree_node*) ???:0 0x16c5fc5 decl_assembler_name(tree_node*) ???:0 0x16eea01 assign_assembler_name_if_needed(tree_node*) ???:0 0xe8c11d cgraph_node::analyze() ???:0 0xe8f6d1 symbol_table::finalize_compilation_unit() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Compiler returned: 1 Online reproducer: https://godbolt.org/z/K1hjEsaf5 The ICE does not reproduce on 14.1, it's trunk only (tested on Compiler-Explorer-Build-gcc-cbf2ed4b309d54039d74be5d730299012e7681b3-binuti= ls-2.42, 15.0.0 20240603).=