[Bug fortran/21034] internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:3036
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 15 08:30:00 GMT 2005
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-04-15 08:30 -------
Reduced testcase is:
$ cat pr21034.f
subroutine solution(n)
implicit none
integer n
real dte(n)
save
print *, dte
end
$ gfortran -c pr21034.f
pr21034.f: In function ÂsolutionÂ:
pr21034.f:4: internal compiler error: in gfc_trans_auto_array_allocation, at
fortran/trans-array.c:3036
Please note that if "print *,dte" is replaced by any other statement using dte
(such as "dte(:) = 0" or "call anothersub(dte)"), the bug is the same. Removing
this line, removing the "save" statement or make n a parameter lead to correct
compilation.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-04-15 08:30:11
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21034
More information about the Gcc-bugs
mailing list