------- Comment #8 from fxcoudert at gcc dot gnu dot org 2006-10-02 20:13 ------- I think the following can workaround the middle-end problem:
Index: trans-decl.c =================================================================== --- trans-decl.c (revision 117368) +++ trans-decl.c (working copy) @@ -1866,6 +1866,7 @@ TREE_PUBLIC (decl) = 0; TREE_USED (decl) = 1; GFC_DECL_RESULT (decl) = 1; + TREE_ADDRESSABLE (decl) = 1; layout_decl (decl, 0); -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |19292 nThis| | Component|fortran |middle-end Known to fail| |4.2.0 Known to work| |4.1.2 Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27478