diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-08-06 12:00:53 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-08-06 12:00:53 +0200 |
commit | a8006d0933c8c954b134152c1fb60a379c7fb846 (patch) | |
tree | 51307a287fe8c7944a34211fdcee41233244ad4a /gcc/fortran/trans-array.h | |
parent | b17775aba4c709c1fc3f19af33d50b025e3891f4 (diff) | |
download | gcc-a8006d0933c8c954b134152c1fb60a379c7fb846.zip gcc-a8006d0933c8c954b134152c1fb60a379c7fb846.tar.gz gcc-a8006d0933c8c954b134152c1fb60a379c7fb846.tar.bz2 |
re PR fortran/18833 (ICE 'missing spec' on integer/char equivalence)
PR fortran/18833
PR fortran/20850
* primary.c (match_varspec): If equiv_flag, don't look at sym's
attributes, call gfc_match_array_ref up to twice and don't do any
substring or component processing.
* resolve.c (resolve_equivalence): Transform REF_ARRAY into
REF_SUBSTRING or nothing if needed. Check that substrings
don't have zero length.
* gfortran.dg/equiv_1.f90: New test.
* gfortran.dg/equiv_2.f90: New test.
* gfortran.fortran-torture/execute/equiv_2.f90: New test.
* gfortran.fortran-torture/execute/equiv_3.f90: New test.
* gfortran.fortran-torture/execute/equiv_4.f90: New test.
From-SVN: r102801
Diffstat (limited to 'gcc/fortran/trans-array.h')
0 files changed, 0 insertions, 0 deletions