1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/fail19941.d(8): Error: undefined identifier `dne` 5 --- 6 */ 7 auto a = new Auto; 8 class Auto { int field = &dne; } 9 10 /* 11 TEST_OUTPUT: 12 --- 13 fail_compilation/fail19941.d(17): Error: undefined identifier `dne` 14 --- 15 */ 16 const c = new Const; 17 class Const { int field = &dne; } 18 19 /* 20 TEST_OUTPUT: 21 --- 22 fail_compilation/fail19941.d(26): Error: undefined identifier `dne` 23 --- 24 */ 25 enum e = new Enum; 26 class Enum { int field = &dne; } 27 28 /* 29 TEST_OUTPUT: 30 --- 31 fail_compilation/fail19941.d(35): Error: undefined identifier `dne` 32 --- 33 */ 34 __gshared g = new Gshared; 35 class Gshared { int field = &dne; } 36 37 /* 38 TEST_OUTPUT: 39 --- 40 fail_compilation/fail19941.d(44): Error: undefined identifier `dne` 41 --- 42 */ 43 immutable i = new Immutable; 44 class Immutable { int field = &dne; } 45 46 /* 47 TEST_OUTPUT: 48 --- 49 fail_compilation/fail19941.d(53): Error: undefined identifier `dne` 50 --- 51 */ 52 shared s = new Shared; 53 class Shared { int field = &dne; } 54 55 /* 56 TEST_OUTPUT: 57 --- 58 fail_compilation/fail19941.d(62): Error: undefined identifier `dne` 59 --- 60 */ 61 static t = new Static; 62 class Static { int field = &dne; } 63