public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "oficsu at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109978] New: ICE in tsubst, at cp/pt.cc:15869: alias template + c array size deduction + lambda Date: Fri, 26 May 2023 06:22:27 +0000 [thread overview] Message-ID: <bug-109978-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109978 Bug ID: 109978 Summary: ICE in tsubst, at cp/pt.cc:15869: alias template + c array size deduction + lambda Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: oficsu at gmail dot com Target Milestone: --- Created attachment 55162 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55162&action=edit A minimal reproducible example Lambdas in unevaluated contexts combined with an alias template to a c-style array causes ICE when it's used to deduce the size of an array passed to a function template, MRE: template<auto N, auto = []{}> using array = int[N]; template<auto N> void foo(array<N>&&) {} int main() { foo({1, 2, 3}); } I've used a system GCC to generate the bug report, but other versions (including trunk releases) affected also. See more on Compiler Explorer: https://godbolt.org/z/zW6KETaYn
next reply other threads:[~2023-05-26 6:22 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-26 6:22 oficsu at gmail dot com [this message] 2023-05-26 6:38 ` [Bug c++/109978] " pinskia at gcc dot gnu.org 2023-05-26 6:56 ` pinskia at gcc dot gnu.org 2023-05-26 6:57 ` pinskia at gcc dot gnu.org 2024-04-15 22:22 ` pinskia 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-109978-4@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).