This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34876] can't read zero length array sections



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]