This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/83980] Various issues with character length in array constructors
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Jan 2018 21:26:54 +0000
- Subject: [Bug fortran/83980] Various issues with character length in array constructors
- Auto-submitted: auto-generated
- References: <bug-83980-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> ---
A variant with wrong code:
program gfcbug147a
implicit none
type t
character(len=8) :: name
end type t
type(t) ,parameter :: o(*) = [ t('RADAR') ]
character(*) ,parameter :: name = o(1)% name
print *, len(o(1)% name)
print *, len( name)
end program gfcbug147a
% gfc-x gfcbug147a.f90 && ./a.out
8
5
I'll see if I can find related bugs.