This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/52038] [4.7 regression] fortran bootstrap failure: no previous prototype for 'symbol_as'
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 29 Jan 2012 12:04:35 +0000
- Subject: [Bug fortran/52038] [4.7 regression] fortran bootstrap failure: no previous prototype for 'symbol_as'
- Auto-submitted: auto-generated
- References: <bug-52038-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52038
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-29 12:04:35 UTC ---
> Added (accidentally) with Rev. 183620 of 2012-01-27. The function is part of
> the (uncommitted) patch for PR 50981.
AFAICT it was introduced to simplify constructs such as
+ if ((sym->as != NULL && sym->ts.type != BT_CLASS)
+ || (sym->ts.type == BT_CLASS && sym->attr.class_ok
+ && CLASS_DATA (sym)->as))
or
+ e->rank = sym->ts.type == BT_CLASS
+ ? CLASS_DATA (sym)->as->rank : sym->as->rank;
(see r183622) to
if (symbol_as (sym) != NULL)
...
gfc_array_spec *as = symbol_as (sym);
e->rank = as->rank;
CCed Mikael Morin as a reminder to provide a prototype;-)