https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87766
Bug ID: 87766 Summary: ICE using __PRETTY_FUNCTION__ in dependent context Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric at efcs dot ca Target Milestone: --- // g++ -std=c++1z test.cpp template <class Tp = void> void test() { [](auto rhs) { auto ptr = __PRETTY_FUNCTION__; }(42); } template void test<>(); The above code ICE's with the error: internal compiler error: in output_constant, at varasm.c:4971