------- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-09-22 15:02 ------- Patch below fixes it:
Index: trans-types.c =================================================================== --- trans-types.c (revision 128661) +++ trans-types.c (working copy) @@ -1088,16 +1088,19 @@ gfc_get_desc_dim_type (void) decl = build_decl (FIELD_DECL, get_identifier ("stride"), gfc_array_index_type); DECL_CONTEXT (decl) = type; + TREE_NO_WARNING (decl) = 1; fieldlist = decl; decl = build_decl (FIELD_DECL, get_identifier ("lbound"), gfc_array_index_type); DECL_CONTEXT (decl) = type; + TREE_NO_WARNING (decl) = 1; fieldlist = chainon (fieldlist, decl); decl = build_decl (FIELD_DECL, get_identifier ("ubound"), gfc_array_index_type); DECL_CONTEXT (decl) = type; + TREE_NO_WARNING (decl) = 1; fieldlist = chainon (fieldlist, decl); /* Finish off the type. */ @@ -1389,12 +1392,14 @@ gfc_get_array_descriptor_base (int dimen decl = build_decl (FIELD_DECL, get_identifier ("offset"), gfc_array_index_type); DECL_CONTEXT (decl) = fat_type; + TREE_NO_WARNING (decl) = 1; fieldlist = chainon (fieldlist, decl); /* Add the dtype component. */ decl = build_decl (FIELD_DECL, get_identifier ("dtype"), gfc_array_index_type); DECL_CONTEXT (decl) = fat_type; + TREE_NO_WARNING (decl) = 1; fieldlist = chainon (fieldlist, decl); /* Build the array type for the stride and bound components. */ @@ -1406,6 +1411,7 @@ gfc_get_array_descriptor_base (int dimen decl = build_decl (FIELD_DECL, get_identifier ("dim"), arraytype); DECL_CONTEXT (decl) = fat_type; + TREE_NO_WARNING (decl) = 1; fieldlist = chainon (fieldlist, decl); /* Finish off the type. */ -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Keywords| |diagnostic, patch Known to fail| |4.3.0 Last reconfirmed|0000-00-00 00:00:00 |2007-09-22 15:02:06 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33522