From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C62343858C3A; Sat, 13 Apr 2024 07:41:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C62343858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712994062; bh=Xa67YO7Zci+/LiDJMbkxeM27fOXR9FmSZB2azIJQ1C0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pszW4Mh6nX6LsQuYLydM1pFV2YkNQ4ymUXfRfEP2p62RNbfPJ7ZF1B1iu6hLIn98V 9mp1JJLKQlhWwo+LoIesK8HbslrPdVZLoTmuHjwYF83ySGPK0IANpdsumlX8ZtmPUj chKP757PdNjQVHhOoDq9SN6+ZZzqp0BmUy3BU2fg= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99505] ICE Segmentation fault when decltype lambda in parameter list Date: Sat, 13 Apr 2024 07:41:01 +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: 9.1.0 X-Bugzilla-Keywords: c++-lambda, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D99505 --- Comment #7 from Andrew Pinski --- (In reply to =E5=BA=B7=E6=A1=93=E7=91=8B from comment #2) > int main() { > [] (decltype([]{})) {} (); > } This testcase still ICEs. Note clang, EDG and MSVC all reject it with a similar message here is clang= 's: ``` :3:3: error: no matching function for call to object of type '(lamb= da at :3:3)' 3 | [] (decltype([]{})) {} (); | ^~~~~~~~~~~~~~~~~~~~~~ :3:3: note: candidate function not viable: requires 1 argument, but= 0 were provided 3 | [] (decltype([]{})) {} (); | ^ ~~~~~~~~~~~~~~ :3:3: note: conversion candidate of type 'void (*)(decltype([] { }))' (aka 'void (*)((lambda at :3:16))') ```=