5 fail_compilation/test20655.d(29): Deprecation: `@safe` function `g` calling `f1`
6 fail_compilation/test20655.d(24): which wouldn't be `@safe` because of:
7 fail_compilation/test20655.d(24): field `U.s` cannot access pointers in `@safe` code that overlap other fields
8 fail_compilation/test20655.d(30): Deprecation: `@safe` function `g` calling `f2`
9 fail_compilation/test20655.d(25): which wouldn't be `@safe` because of:
10 fail_compilation/test20655.d(25): field `U.s` cannot access pointers in `@safe` code that overlap other fields
11 fail_compilation/test20655.d(31): Deprecation: `@safe` function `g` calling `f3`
12 fail_compilation/test20655.d(28): which wouldn't be `@safe` because of:
13 fail_compilation/test20655.d(28): field `U.s` cannot access pointers in `@safe` code that overlap other fields
24 auto f1() { auto s
= u
.s
; } /* Should be inferred as @system. */
25 void f2()() { auto s
= u
.s
; } /* ditto */
28 void f3() { auto s
= u
.s
; } /* ditto */
29 f1(); /* Should be rejected with error "cannot call @system function". */