------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-13 00:13 ------- 495 /* TODO: Don't set sym->module for result or dummy variables. */ 496 gcc_assert (current_function_decl == NULL_TREE || sym->result == sym); 497 /* This is the declaration of a module variable. */ 498 TREE_PUBLIC (decl) = 1; 499 TREE_STATIC (decl) = 1;
that is where we set the decl's public and static flags, that seems wrong. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26246