This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/68568] New: ICE with automatic character object and save, in combination with some options


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68568

            Bug ID: 68568
           Summary: ICE with automatic character object and save, in
                    combination with some options
           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: ---

Compiling with "-finit-character" gives an internal error here :


$ cat z1a.f90
subroutine s(n)
   integer, intent(in) :: n
   character(n) :: x
   save
   x = 'a'
end


$ gfortran -finit-character=7 -c z1a.f90
z1a.f90:1:0:

 subroutine s(n)
 1
internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:1575


$ gfortran -Wall -finit-character=7 -c z1a.f90
f951: internal compiler error: Segmentation fault


# effectivly:
$ gfortran -Wsurprising -finit-character=7 -c z1a.f90
f951: internal compiler error: Segmentation fault

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]