------- Comment #25 from burnus at gcc dot gnu dot org 2010-07-24 18:14 ------- (In reply to comment #21) > In my opinion revision 162487 is only a partial fix of the problem. If I split > a modified test case in two files: [...] I still get [...] Bus error
(In reply to comment #24) > Look at -fdump-tree-original-uid dumps and see if you find the > same decl with two different UIDs. I bet you will. One does. The problem is that when the module is not available. The variable "c" (of example in comment 21) created for the main program "char_array_structure_constructor" but if one searches for the symbol (in gfc_get_symbol_decl) via gsym = gfc_find_gsymbol (gfc_gsym_root, sym->module); the result is NULL as the only gsym which exists in gfc_gsym_root is the one for "char_array_structure_constructor" as there is none for the module. One should create a "fake" gsym for modules, if the module does not exist, and put there the variables, functions, and type declarations - such that they can be found if needed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44945