1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice11849b.d(11): Error: circular reference to enum base type `DWORD1`
5 fail_compilation/ice11849b.d(11): Error: DWORD1 is used as a type
6 fail_compilation/ice11849b.d(16): Error: circular reference to enum base type `typeof(DWORD2)`
7 ---
8 */
9 enum REG_DWORD = 1;
10 
11 enum : DWORD1
12 {
13     DWORD1 = REG_DWORD
14 }
15 
typeof(DWORD2)16 enum : typeof(DWORD2)
17 {
18     DWORD2 = REG_DWORD
19 }
20