[Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 --- Comment #6 from Patrick Palka --- FWIW a workaround for most valid code is to replace e.g. ignore_index_t, where v is the problematic NTTP argument, with ignore_index_t.
[Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 Andrew Paprocki changed: What|Removed |Added CC||andrew at ishiboo dot com --- Comment #5 from Andrew Paprocki --- Reconfirmed with all the following versions: * g++-11 11.3.0 internal compiler error: in tsubst_copy, at cp/pt.c:16767 * g++-12 12.2.0 internal compiler error: in tsubst_copy, at cp/pt.cc:16949 * g++-13 13.1.0 internal compiler error: in tsubst_copy, at cp/pt.cc:17275
[Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 --- Comment #4 from Andrew Pinski --- There might be a dup of this bug already but I can't seem to find it.
[Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 Martin Liška changed: What|Removed |Added CC||jason at gcc dot gnu.org, ||marxin at gcc dot gnu.org, ||ppalka at gcc dot gnu.org Last reconfirmed||2022-12-12 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Martin Liška --- Started to be rejected since r8-6334-g018e9cb5e6050e03 and it crashes since r10-7835-ga3a4f6be0c7ac153.
[Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 --- Comment #2 from LIU Hao --- Reconfirmed with all the following versions: * g++-10 (Ubuntu 10.4.0-4ubuntu1~22.04) 10.4.0 * g++-11 (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 * g++-12 (Ubuntu 12.2.0-3ubuntu1~22.04) 12.2.0
[Bug c++/108059] internal compiler error: in tsubst_copy, at cp/pt.c:16425
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108059 LIU Hao 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 --- Reduced testcase, also ICEs with GCC 10.3.0 and 11.1.0, but 9.4.0 is fine: ``` template using a = int; template auto b() { [](auto... c) { [](a...) {}; }; } template using e = decltype(b); e<1> f; ``` ``` $ g++-10 -std=c++17 test.cc test.cc: In instantiation of ‘auto b() [with int = 1]’: test.cc:5:24: required by substitution of ‘template using e = decltype (b) [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...) {}; }; | ^~ 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 for instructions. ```