This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68568] New: ICE with automatic character object and save, in combination with some options
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Nov 2015 20:33:33 +0000
- Subject: [Bug fortran/68568] New: ICE with automatic character object and save, in combination with some options
- Auto-submitted: auto-generated
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