MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13081.d
blob64474bae1a4ed21c3de730ccd1627af3d658e17d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13081.d(17): Error: undefined identifier `node`
5 fail_compilation/ice13081.d(17): Error: undefined identifier `data`
6 fail_compilation/ice13081.d(17): Error: undefined identifier `node`
7 fail_compilation/ice13081.d(28): Error: template instance `ice13081.Cube!(SparseDataStore)` error instantiating
8 ---
9 */
11 struct Cube(StorageT)
13 StorageT datastore;
14 alias datastore this;
15 auto seed()
17 this[] = node.data ? data : node.data;
21 class SparseDataStore
23 auto opSlice() {}
26 void main()
28 Cube!SparseDataStore c;