https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78334
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Anatoliy Tomilov from comment #2) > (In reply to Markus Trippelsdorf from comment #1) > > markus@x4 /tmp % cat lam.ii > > template <auto> auto constexpr_string([](auto) {}); > > void foo() { constexpr_string<0>(0); }; > > > > markus@x4 /tmp % clang++ -c -std=c++1z lam.ii > > markus@x4 /tmp % /var/tmp/gcc_test/usr/local/bin/g++ -c -std=c++1z lam.ii > > lam.ii: In instantiation of ‘struct<lambda>’: > > lam.ii:1:22: required from ‘auto constexpr_string<0>’ > > lam.ii:2:14: required from here > > lam.ii:1:46: internal compiler error: Segmentation fault > > Why clang++? I sure this bug tracker is about g++. It just demonstrates that clang accepts the code.