[Bug fortran/68569] New: ICE with automatic character object and DATA
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Thu Nov 26 20:39:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68569
Bug ID: 68569
Summary: ICE with automatic character object and DATA
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
This issue is strong related to pr68568, but differs :
- initialization with DATA
- no explicit SAVE
- it does NOT depend on "-finit-character" nor "-Wall" etc.
$ cat z2a.f90
subroutine s(n)
integer, intent(in) :: n
character(n) :: x
data x /'a'/
end
$ gfortran -c z2a.f90
z2a.f90:4:12:
data x /'a'/
1
Warning: Initialization string at (1) was truncated to fit the variable (0/1)
z2a.f90:1:0:
subroutine s(n)
1
internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1575
More information about the Gcc-bugs
mailing list