This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68154] New: ICE on initializing character parameter array (explicit, implied)
- 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, 29 Oct 2015 18:30:47 +0000
- Subject: [Bug fortran/68154] New: ICE on initializing character parameter array (explicit, implied)
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68154
Bug ID: 68154
Summary: ICE on initializing character parameter array
(explicit, implied)
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: ---
Some variants of initializing a character parameter array
(explicit-shape, implied-shape) are not working :
$ cat z1.f90
program p
character(1), parameter :: x1(2) = 'a'
character(*), parameter :: x2(2) = x1
character(*), parameter :: x3(*) = x1
end
$ gfortran -g -O0 -Wall -fcheck=all z1.f90
f951: internal compiler error: Segmentation fault
$ cat z2.f90
program p
character(*), parameter :: x1(2) = 'a'
character(*), parameter :: x2(2) = x1
character(*), parameter :: x3(*) = x1
end
$ gfortran -g -O0 -Wall -fcheck=all z2.f90
f951: internal compiler error: Segmentation fault