------- Comment #1 from burnus at gcc dot gnu dot org 2008-12-10 15:35 ------- More information. The problem is: GFC_DECL_SPAN(decl) which accesses DECL_LANG_SPECIFIC(node)->span however, DECL_LANG_SPECIFIC(node) == NULL as can be seen below.
(gdb) p decl->decl_common.lang_specific $15 = (struct lang_decl *) 0x0 (gdb) pt decl->decl_common.lang_specific type = struct lang_decl { tree saved_descriptor; tree stringlen; tree addr; tree span; } * -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38471