http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
Tobias Burnus changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #6 from Tobias Burnus 2013-05-07
10:00:20 UTC ---
FIXED by the following commit (on the Fortran-dev branch).
Thanks for the report!
Author: burnus
Date: Tue May 7 09:37:19 2013
New Revision: 198669
URL: http://gcc.g
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #5 from Tobias Burnus 2013-04-30
21:57:28 UTC ---
For the test case in comment 0:
__builtin_memset (y._data.base_addr, 0, 4);
y._data.rank = 1;
y._data.type = -1;
y._data.dim[0].lower_bound = 1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
Dominique d'Humieres changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #3 from Tobias Burnus 2013-04-01
21:34:55 UTC ---
Created attachment 29769
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29769
Early draft patch
The patch mostly implements a fix for this bug - but it needs some clean
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #2 from Tobias Burnus 2013-04-01
18:01:03 UTC ---
The problem is in gfc_array_init_size. There, one should first obtain the
element size. And instead of gfc_conv_descriptor_stride_set one should use
gfc_conv_descriptor_sm_set.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56800
--- Comment #1 from Thomas Koenig 2013-04-01
17:05:35 UTC ---
The stride needs to be set from the source; it currently
is taken from y (which is an empty type, hence the 0
for sm).