summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/diag19196.d
blob: 857f9a4b5325b67e6b9348373c4148ac019a689e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
TEST_OUTPUT:
---
fail_compilation/diag19196.d(11): Error: unable to determine fields of `B` because of forward references
fail_compilation/diag19196.d(15): Error: template instance `diag19196.Foo!(B)` error instantiating
---
*/
module diag19196;
struct Foo(T)
{
    alias F = typeof(T.tupleof);
}
struct B
{
    Foo!B b;
}