Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/ice11153.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice11153.d(11): Error: function declaration without return type. (Note that constructors are always named `this`)
5 fail_compilation/ice11153.d(11): Error: variable name expected after type `foo()`, not `{`
6 ---
7 */
8
9 struct S
10 {
11 foo(T)() {}
12 // Parser creates a TemplateDeclaration object with ident == NULL
13 }
14
15 void main() {}