Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice10076.d(18): Error: template instance `getMembersAndAttributesWhere!()` template `getMembersAndAttributesWhere` is not defined
5 fail_compilation/ice10076.d(23): Error: template instance `ice10076.getValidaterAttrs!string` error instantiating
6 fail_compilation/ice10076.d(13): instantiated from here: `validate!string`
7 ---
8 */
9
10 void main()
11 {
12 string s;
13 validate(s);
14 }
15
16 template getValidaterAttrs(T)
17 {
18 alias getMembersAndAttributesWhere!().Elements getValidaterAttrs;
19 }
20
21 void validate(T)(T)
22 {
23 alias getValidaterAttrs!T memberAttrs;
24 auto x = memberAttrs.length;
25 }