public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "lh_mouse at 126 dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425 Date: Sun, 11 Dec 2022 13:34:40 +0000 [thread overview] Message-ID: <bug-108059-4-DtBSAwJgbj@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108059-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 LIU Hao <lh_mouse at 126 dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.3.0, 11.1.0 Target| |x86_64-linux-gnu Host| |x86_64-linux-gnu --- Comment #1 from LIU Hao <lh_mouse at 126 dot com> --- Reduced testcase, also ICEs with GCC 10.3.0 and 11.1.0, but 9.4.0 is fine: ``` template <int> using a = int; template <int> auto b() { [](auto... c) { [](a<c>...) {}; }; } template <int d> using e = decltype(b<d>); e<1> f; ``` ``` $ g++-10 -std=c++17 test.cc test.cc: In instantiation of ‘auto b() [with int <anonymous> = 1]’: test.cc:5:24: required by substitution of ‘template<int d> using e = decltype (b<d>) [with int d = 1]’ test.cc:6:4: required from here test.cc:3:19: internal compiler error: in tsubst_copy, at cp/pt.c:16425 3 | [](auto... c) { [](a<c>...) {}; }; | ^~~~~~~~~~~~~~ 0x7f76079c809a __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions. ```
next prev parent reply other threads:[~2022-12-11 13:34 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-11 13:32 [Bug c++/108059] New: " lh_mouse at 126 dot com 2022-12-11 13:34 ` lh_mouse at 126 dot com [this message] 2022-12-12 3:56 ` [Bug c++/108059] " lh_mouse at 126 dot com 2022-12-12 13:24 ` marxin at gcc dot gnu.org 2022-12-12 16:30 ` pinskia at gcc dot gnu.org 2024-04-30 13:42 ` andrew at ishiboo dot com 2024-04-30 13:52 ` ppalka 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-108059-4-DtBSAwJgbj@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).