This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38813] ICE with C_LOC(array)
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2009 20:07:58 -0000
- Subject: [Bug fortran/38813] ICE with C_LOC(array)
- References: <bug-38813-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mikael at gcc dot gnu dot org 2009-01-14 20:07 -------
is_scalar_expr_ptr is weird.
Those are the things to change in it, IMHO:
- is_scalar_expr_ptr does not need to check whether character lengths are
equal to 1 as arbitrary length character variables are considered as scalars by
the standard;
- full arrays, (and array ranges as well) are non-scalar even if they are of
size 1;
- the whole reference chain should be checked, not only the last one.
Hum, may be it could be reduced to a mere expr->rank == 0 ?
--
mikael at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-01-14 20:07:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38813