]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/ice13081.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13081.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
4fail_compilation/ice13081.d(17): Error: undefined identifier `node`
5fail_compilation/ice13081.d(17): Error: undefined identifier `data`
6fail_compilation/ice13081.d(17): Error: undefined identifier `node`
5fee5ec3 7fail_compilation/ice13081.d(28): Error: template instance `ice13081.Cube!(SparseDataStore)` error instantiating
b4c522fa
IB
8---
9*/
10
11struct Cube(StorageT)
12{
13 StorageT datastore;
14 alias datastore this;
15 auto seed()
16 {
17 this[] = node.data ? data : node.data;
18 }
19}
20
21class SparseDataStore
22{
23 auto opSlice() {}
24}
25
26void main()
27{
28 Cube!SparseDataStore c;
29}