public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114303] [11/12/13/14 Regression] ICE with constexpr if and static_assert accessing captures across nested generic lambdas Date: Mon, 11 Mar 2024 12:46:55 +0000 [thread overview] Message-ID: <bug-114303-4-1kdeh9BC2E@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114303-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114303 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Known to fail| |11.4.0, 12.3.0, 13.1.0 Known to work| |11.3.0, 12.1.0, 12.2.0 Summary|ICE with constexpr if and |[11/12/13/14 Regression] |static_assert accessing |ICE with constexpr if and |captures across nested |static_assert accessing |generic lambdas |captures across nested | |generic lambdas Target Milestone|--- |11.5 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-03-11 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: ``` struct a { static constexpr int value = 1; }; int main() { [](auto level1) { return [&](auto ) { return [&](auto level3) { if constexpr (decltype(level3)::value) { static_assert(decltype(level1)::value, ""); } return 0; }(a{}); }(0); }(a{}); } ```
next prev parent reply other threads:[~2024-03-11 12:46 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-11 11:07 [Bug c++/114303] New: " benbarsdell at gmail dot com 2024-03-11 12:46 ` pinskia at gcc dot gnu.org [this message] 2024-03-11 12:48 ` [Bug c++/114303] [11/12/13/14 Regression] ICE with constexpr if and " pinskia at gcc dot gnu.org 2024-03-11 14:43 ` ppalka at gcc dot gnu.org 2024-03-15 15:01 ` law at gcc dot gnu.org 2024-03-25 12:52 ` rguenth at gcc dot gnu.org 2024-04-11 14:17 ` cvs-commit at gcc dot gnu.org 2024-04-12 20:04 ` [Bug c++/114303] [11/12/13 " ppalka at gcc dot gnu.org 2024-05-14 2:58 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-114303-4-1kdeh9BC2E@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).