Debian Codegraph @

gcc/testsuite/gdc.test/compilable/ice11777.d

raw
1 void f(void delegate(int)) {}
2
3 class C
4 {
5 int i;
6 this()
7 {
8 f((a){});
9 /* (a){} is a template lambda, so FuncExp::semantic -> TemplateDeclaration::semantic
10 * will save the scope in TemplateDeclaration::scope with fieldinit. Later push/pop
11 * of the scope for template lambda body semantics will violate the assertion in Scope::pop().
12 */
13 }
14 }