From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C910C3858D38; Tue, 13 Jun 2023 21:05:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C910C3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686690326; bh=/hqwSre+k2kKjJ9EQqaJgBR/Nq3wykHJhA90ocz5/Qs=; h=From:To:Subject:Date:From; b=kPuCu3RV9HA/gE1tgNmCwLdo5HhXOzTu/JWtW9HM3kpY8ABl1HTRvglZvlz1CvHxn KC7XNLQ2J7qN967jF/nj941rybpmRmnQJ1fdizfIreNKDv1IAaOYwIl1y/x2J4+ta4 k1LkE4qr9nTstiepd1oMK4pO2WXeYRR7Ul4BsGXU= From: "stevenxia990430 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110242] New: ICE on valid (decltype with lambda) Date: Tue, 13 Jun 2023 21:05:26 +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: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stevenxia990430 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=3D110242 Bug ID: 110242 Summary: ICE on valid (decltype with lambda) Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: stevenxia990430 at gmail dot com Target Milestone: --- The following program reports an internal compiler error: error reporting routines re-entered. To quickly reproduce: https://gcc.godbolt.org/z/h4aG89rWT ``` #include template auto foo(const Tuple& t) -> decltype(([](auto&&... xs){return 0;})){ } int main(){ const std::tuple t{1}; return foo([](){ return 0;})(t); } ``` Note that this code when tested on clang-trunk successfully compiles.=