This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66709] ICE on formatted io with parameter array specifier fmt
- 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: Tue, 30 Jun 2015 16:50:48 +0000
- Subject: [Bug fortran/66709] ICE on formatted io with parameter array specifier fmt
- Auto-submitted: auto-generated
- References: <bug-66709-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66709
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Whereas versions without "parameter" compile and run fine :
$ cat z_wr_fmt_ice_4.f90
program p
character(4) :: fmt(1) = '(i8)'
integer :: n
read (*, fmt=fmt) n
write (*, fmt=fmt) n
end
$ cat z_wr_fmt_ice_6.f90
program p
character(1) :: fmt(4) = ['(', 'i', '8', ')']
integer :: n
read (*, fmt=fmt) n
write (*, fmt=fmt) n
end