MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13835.d
blobdcb17579d9c72c3d649219262783000b793100da
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13835.d(15): Error: value of `this` is not known at compile time
5 fail_compilation/ice13835.d(21): Error: template instance `ice13835.Foo!int` error instantiating
6 ---
7 */
9 class Foo(T)
11 private T* _data;
13 final private void siftUp(int position) nothrow
15 static T crash = *(this._data + position);
19 void main()
21 auto heap = new Foo!(int);