public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36825] [F2008] Rank > 7 arrays [will break library ABI] libgfortran I/O+intrinsics:
[not found] <bug-36825-4@http.gcc.gnu.org/bugzilla/>
@ 2012-09-15 13:09 ` burnus at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-15 13:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36825
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #12 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-09-15 13:09:15 UTC ---
We also need to update dwarf2out.h, which has:
266struct array_descr_info
267{
268 int ndimensions;
269 tree element_type;
270 tree base_decl;
271 tree data_location;
272 tree allocated;
273 tree associated;
274 struct array_descr_dimen
275 {
276 tree lower_bound;
277 tree upper_bound;
278 tree stride;
279 } dimen[10];
280};
Thus, GCC limits the maximal rank to 10.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/36825] New: Problems with dimensions > 7
@ 2008-07-14 17:26 burnus at gcc dot gnu dot org
2009-08-15 2:18 ` [Bug fortran/36825] F2008: Rank > 7 arrays [will break library ABI] libgfortran I/O+intrinsics: jvdelisle at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-07-14 17:26 UTC (permalink / raw)
To: gcc-bugs
gfortran 4.4 allows 15 instead of 7 dimensions, however, it has some problems
with that:
gfortran -std=f95 -Wall -pedantic should print a message for:
integer,parameter :: N=10
complex,dimension(-N:N,-N:N,0:1,0:1,-N:N,-N:N,0:1,0:1) :: P
end
But it does not. This seems to be an off-by-one error as for 9 dimensions an
error is printed:
Error: Fortran 2008: Array specification at (1) with more than 7 dimensions
* * *
More seriously, adding a PRINT causes an IDE:
a.f90:1: internal compiler error: in gfc_get_dtype, at
fortran/trans-types.c:1254
integer,parameter :: N=10
complex,dimension(-N:N,-N:N,0:1,0:1,-N:N,-N:N,0:1,0:1) :: P
print *, p
end
--
Summary: Problems with dimensions > 7
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36825
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-15 13:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-36825-4@http.gcc.gnu.org/bugzilla/>
2012-09-15 13:09 ` [Bug fortran/36825] [F2008] Rank > 7 arrays [will break library ABI] libgfortran I/O+intrinsics: burnus at gcc dot gnu.org
2008-07-14 17:26 [Bug fortran/36825] New: Problems with dimensions > 7 burnus at gcc dot gnu dot org
2009-08-15 2:18 ` [Bug fortran/36825] F2008: Rank > 7 arrays [will break library ABI] libgfortran I/O+intrinsics: jvdelisle at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).