https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89429
Bug ID: 89429 Summary: ICE with __func__ Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vakevk at gmail dot com Target Milestone: --- Created attachment 45782 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45782&action=edit Example code g++ (Debian 8.2.0-20) 8.2.0 Compiling the attached code with `g++ testcase.cpp` results in an internal compiler error: main.cpp: In instantiation of 'g() [with T = int]::<lambda(auto:1)> [with auto:1 = int]': main.cpp:4:13: required from 'void f(Function&&) [with Function = g() [with T = int]::<lambda(auto:1)>]' main.cpp:11:6: required from 'void g() [with T = int]' main.cpp:18:12: required from here main.cpp:12:9: internal compiler error: in enclosing_instantiation_of, at cp/pt.c:13321 __func__; ^~~~~~~~ 0x7f5b303dc09a __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-8/README.Bugs> for instructions.