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.fort...@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

Reply via email to