https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67528
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > AFAICT this PR is fixed after revision r229303. Well, this is not true with -O and above. If i compile the code with '-O0 -fsanitize=address,undefined' I get at run time pr67528.f90:17: runtime error: load of null pointer of type 'real(kind=4)' Case A: v1%x = -0.372548997 and with '-O -fsanitize=address,undefined' pr67528.f90:17: runtime error: load of null pointer of type 'real(kind=4)' ASAN:DEADLYSIGNAL ================================================================= ==36379==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00010c738887 bp 0x000000000000 sp 0x7fff534c8130 T0) #0 0x10c738886 in __m_MOD_copy_t_a (a.out+0x100001886) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (a.out+0x100001886) in __m_MOD_copy_t_a ==36379==ABORTING Program received signal SIGABRT: Process abort signal. Backtrace for this error: #0 0x10d4866a4 #1 0x10d485aa5 #2 0x7fff8f8aff19 Abort