gcc/testsuite/gdc.test/fail_compilation/ice23564.d
raw| 1 | /* TEST_OUTPUT: |
| 2 | --- |
| 3 | fail_compilation/ice23564.d(10): Error: cannot construct nested class `FreeList` because no implicit `this` reference to outer class `RBTree` is available |
| 4 | --- |
| 5 | */ |
| 6 | class BlockHeader |
| 7 | { |
| 8 | this() |
| 9 | { |
| 10 | new FreeList; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | class RBTree |
| 15 | { |
| 16 | class FreeList |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | void _each_reverse() |
| 21 | { |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | alias FreeList = RBTree.FreeList; |