[Bug fortran/17899] New: internal compiler error: in gfc_conv_ss_descriptor, at /fortran/trans-array.c:1264
yanait at ornl dot gov
gcc-bugzilla@gcc.gnu.org
Fri Oct 8 21:18:00 GMT 2004
With
GNU Fortran 95 (GCC 4.0.0 20041008 (experimental))
I receive the error
$ ~/gcc/bin/gfortran fred.f95
fred.f95: In function 'MAIN__':
fred.f95:12: internal compiler error: in gfc_conv_ss_descriptor, at
/fortran/trans-array.c:1264
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
for the following pilot source code:
fred.f95
program fred
implicit none
real*8 :: x(15)
real*8 :: a1,a2,a3,a4, bb
x = 0.0D+00
a1 = 1.0D+00
a2 = 2.0D+00
a3 = 3.0D+00
a4 = 4.0D+00
bb = 0.5D+00
! x(1:4) = bb * (/a1,a2,a3,a4/) ! works OK
x((/1,2,3,4/)) = bb * (/a1,a2,a3,a4/)
! x((/4,5,7,8/)) = bb * (/a1,a2,a3,a4/)
! x((/4,5/)) = bb * (/a1,a2/)
! x((/7,8/)) = bb * (/a3,a4/)
print *, x
end program fred
--
Summary: internal compiler error: in gfc_conv_ss_descriptor, at
/fortran/trans-array.c:1264
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yanait at ornl dot gov
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17899
More information about the Gcc-bugs
mailing list