Commit 6c397102 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/36825 ([F08] Rank > 7 arrays [will break library ABI] libgfortran I/O+intrinsics:)

2008-08-16  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36825
        * libgfortran.h: Reduce GFC_MAX_DIMENSIONS to 7.

2008-08-16  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36825
        * gfortran.dg/rank_1.f90: Modify error message.

From-SVN: r139152
parent 3898bf50
2008-08-16 Tobias Burnus <burnus@net-b.de>
PR fortran/36825
* libgfortran.h: Reduce GFC_MAX_DIMENSIONS to 7.
2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/35863 PR fortran/35863
......
...@@ -88,7 +88,9 @@ libgfortran_error_codes; ...@@ -88,7 +88,9 @@ libgfortran_error_codes;
#define GFC_STDERR_UNIT_NUMBER 0 #define GFC_STDERR_UNIT_NUMBER 0
#define GFC_MAX_DIMENSIONS 15 /* FIXME: Increase to 15 for Fortran 2008. Also needs changes to
GFC_DTYPE_RANK_MASK. See PR 36825. */
#define GFC_MAX_DIMENSIONS 7
#define GFC_DTYPE_RANK_MASK 0x07 #define GFC_DTYPE_RANK_MASK 0x07
#define GFC_DTYPE_TYPE_SHIFT 3 #define GFC_DTYPE_TYPE_SHIFT 3
......
2008-08-16 Tobias Burnus <burnus@net-b.de>
PR fortran/36825
* gfortran.dg/rank_1.f90: Modify error message.
2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2008-08-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/35863 PR fortran/35863
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
! Fortran < 2008 allows 7 dimensions ! Fortran < 2008 allows 7 dimensions
! Fortran 2008 allows 15 dimensions (including co-array ranks) ! Fortran 2008 allows 15 dimensions (including co-array ranks)
! !
integer :: a(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) ! FIXME: Rank patch was reverted because of PR 36825.
integer :: b(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) ! { dg-error "has more than 15 dimensions" } integer :: a(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15) ! { dg-error "has more than 7 dimensions" }
integer :: b(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16) ! { dg-error "has more than 7 dimensions" }
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment