The test case in PR c++/105229 has been fixed since 11.4 (via
PR c++/106024) - the attached patch simply adds the case to
the test suite.
Successfully tested on x86_64-pc-linux-gnu.
PR c++/105229
gcc/testsuite/ChangeLog:
* g++.dg/parse/crash72.C: New test.
--- /dev/null
+// PR c++/105229
+// { dg-do compile { target c++20 } }
+// { dg-additional-options "-Wno-missing-template-keyword" }
+
+template <typename> void bar ()
+{
+ [] <int> {}.operator () <> (); // { dg-error "expected primary-expression" }
+}
+void foo ()
+{
+ bar<int> ();
+}