https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108620
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |iains at gcc dot gnu.org, | |marxin at gcc dot gnu.org Last reconfirmed| |2023-02-06 --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Reduced to something that might be completely out of the topic, but still: $ cat pr108620.ii int ptr, main_output2; template <class TArg> void call2(TArg, int) { ptr = co_yield TArg ::yield_private_data0; } main() { call2("", main_output2); } $ g++ pr108620.ii -c -fcoroutines -Wfatal-errors -w pr108620.ii: In instantiation of ‘void call2(TArg, int) [with TArg = const char*]’: pr108620.ii:5:15: required from here pr108620.ii:3:7: internal compiler error: in instantiate_type, at cp/class.cc:8751 3 | ptr = co_yield TArg ::yield_private_data0; | ~~~~^~~~~~~~~~ 0x7ffff79805af __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7ffff7980678 __libc_start_main_impl ../csu/libc-start.c:381 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.opensuse.org/> for instructions.