From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 390723858C50; Mon, 22 Jan 2024 16:46:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 390723858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705942008; bh=sT3CKTYzzHi74pPeTtgZw69s6wkxbLTKN5fkcWxdkWU=; h=From:To:Subject:Date:From; b=ob0cE8P4E5xk1X8wfIJ02pRzDV3EdxRbpa6jJ1WVgnszBcFvY+FRHY6l+taXocCtY EuWEHdtdrdQfxAdlhjkSDJS+Ja2RStPXhmnRA72jgu1R+FdPtUsCQamkh0Sd8diFiM B908uEIL3LEkkv5Zv4/XbqlMVZrkmnR7R5UBlFzI= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113544] New: [14 Regression] bogus incomplete type error with dependent data member in local class in generic lambda since r14-278 Date: Mon, 22 Jan 2024 16:46:47 +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: ppalka at gcc dot gnu.org 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=3D113544 Bug ID: 113544 Summary: [14 Regression] bogus incomplete type error with dependent data member in local class in generic lambda since r14-278 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- template void f() { [](auto parm) { struct type { decltype(parm) x; }; }; } template void f(); : In instantiation of =E2=80=98struct f()::::ty= pe=E2=80=99: :6:5: required from =E2=80=98void f() [with T =3D int]=E2=80=99 :10:22: required from here :5:22: error: =E2=80=98f()::::type::x=E2=80=99 has i= ncomplete type :5:22: error: invalid use of dependent type =E2=80=98decltype (parm)= =E2=80=99=