This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Bug PR fortran/71783.
- From: Toon Moene <toon at moene dot org>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 8 Jul 2016 19:46:02 +0200
- Subject: Bug PR fortran/71783.
- Authentication-results: sourceware.org; auth=none
Please give some guidance to solve this.
The following code:
SUBROUTINE prtdata(ilen)
INTEGER :: ilen
character(len=ilen), allocatable :: cline(:)
allocate(cline(2))
cline(1) = 'a'
cline(2) = cline(1)
END SUBROUTINE prtdata
leads to an Internal Compiler Error in both 5.4 and 6.1 (and possibly
previous versions).
Richard Biener commented:
The [Fortran Front End] is failing to put 'cline' into a BIND_EXPR. It
has a '.cline' but not 'cline'.
I have no clue where to fix this, but this code was compiled correctly
by versions prior to 5.
Thanks for any help,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news