Bug PR fortran/71783.

Toon Moene toon@moene.org
Fri Jul 8 17:46:00 GMT 2016


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



More information about the Fortran mailing list