This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings
- From: "jb at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Feb 2018 19:47:47 +0000
- Subject: [Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings
- Auto-submitted: auto-generated
- References: <bug-83344-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344
--- Comment #11 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Thu Feb 1 19:47:15 2018
New Revision: 257310
URL: https://gcc.gnu.org/viewcvs?rev=257310&root=gcc&view=rev
Log:
PR 83975 Associate target with non-constant character length
When associating a variable of type character, if the length of the
target isn't known at compile time, generate an error. See PR 83344
for more details.
Regtested on x86_64-pc-linux-gnu.
gcc/fortran/ChangeLog:
2018-02-01 Janne Blomqvist <jb@gcc.gnu.org>
PR 83975
PR 83344
* resolve.c (resolve_assoc_var): Generate an error if
target length unknown.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c