This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34876] can't read zero length array sections
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2008 18:10:17 -0000
- Subject: [Bug fortran/34876] can't read zero length array sections
- References: <bug-34876-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-01-20 18:10 -------
In the failing case, we have no stride:
Breakpoint 1, gfc_walk_subexpr (ss=0xfc2de0, expr=0x106f6b0)
at ../../gcc43/gcc/fortran/trans-array.c:5609
(gdb) p *expr->ref
snip
----> stride = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, dimen_type =
And in the passing case we do:
Breakpoint 1, gfc_walk_subexpr (ss=0xfc2de0, expr=0x106f6b0)
at ../../gcc43/gcc/fortran/trans-array.c:5609
snip
----> stride = {0x106fb70, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
(gdb)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34876