Debian Codegraph @

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

raw
1 /*
2 REQUIRED_ARGS: -m64
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail19898b.d(17): Error: cannot implicitly convert expression `m` of type `S` to `__vector(int[4])`
6 fail_compilation/fail19898b.d(17): Error: expression `__key2 != __limit3` of type `__vector(int[4])` does not have a boolean value
7 fail_compilation/fail19898b.d(17): Error: cannot cast expression `__key2` of type `__vector(int[4])` to `S`
8 ---
9 */
10 struct S
11 {
12 int a;
13 }
14
15 void f (__vector(int[4]) n, S m)
16 {
17 foreach (i; m .. n)
18 cast(void)n;
19 }