[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2018-02-28 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #14 from Paul Thomas --- Author: pault Date: Wed Feb 28 17:36:20 2018 New Revision: 258076 URL: https://gcc.gnu.org/viewcvs?rev=258076=gcc=rev Log: 2018-02-28 Paul Thomas PR fortran/83901 *

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2018-02-23 Thread jb at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 Janne Blomqvist changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2018-02-19 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #12 from Paul Thomas --- Author: pault Date: Mon Feb 19 22:09:13 2018 New Revision: 257827 URL: https://gcc.gnu.org/viewcvs?rev=257827=gcc=rev Log: 2018-02-19 Paul Thomas PR fortran/83344 PR

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2018-02-01 Thread jb at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #11 from Janne Blomqvist --- Author: jb Date: Thu Feb 1 19:47:15 2018 New Revision: 257310 URL: https://gcc.gnu.org/viewcvs?rev=257310=gcc=rev Log: PR 83975 Associate target with non-constant character length When associating a

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-28 Thread jb at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #10 from Janne Blomqvist --- Author: jb Date: Thu Dec 28 18:49:12 2017 New Revision: 256021 URL: https://gcc.gnu.org/viewcvs?rev=256021=gcc=rev Log: PR fortran/83344 Don't set bogus constant value This patch does not fix PR 83344,

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-14 Thread jb at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #9 from Janne Blomqvist --- With the patch in #2 (which in this case is equivalent to your patch in #8) I get on my charlen->size_t branch: ❯ gfortran -O0 -Wall -c a22.f90 a22.f90:20:0: associate(w4 => trim(s)) Warning: ‘.w4’

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-12 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #8 from Steve Kargl --- On Tue, Dec 12, 2017 at 08:04:54PM +, sgk at troutmask dot apl.washington.edu wrote: > > /* Fix up the type-spec for CHARACTER types. */ > if (sym->ts.type == BT_CHARACTER &&

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-12 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #7 from Steve Kargl --- On Tue, Dec 12, 2017 at 08:00:32PM +, anlauf at gmx dot de wrote: > > Intel v15 gives the result you probably expected: > > len(a) = 1 > len(bb) = 2 > len(ccc) = 3 > len(a) = 1 > len(a) = 1 > len(bb) = 2

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-12 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #6 from Steve Kargl --- In resolve.c(resolve_assoc_var) one finds this chuck of code /* Fix up the type-spec for CHARACTER types. */ if (sym->ts.type == BT_CHARACTER && !sym->attr.select_type_temporary) { if

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-12 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #5

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-12 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #4 from Steve Kargl --- On Tue, Dec 12, 2017 at 06:34:49PM +, kargl at gcc dot gnu.org wrote: > > gfortran 6, 7, and trunk all give > > % gfc6 -o z a.f90 && ./z > len(a) = 1 > len(bb) = 2 > len(ccc) = 3 > len() = 0 > len() = 0

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-12 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-11 Thread jb at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 --- Comment #2 from Janne Blomqvist --- Seems it's wrong at least to access value.character.length if the expression isn't a constant? So, diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index d1a2368..017b9f7 100644 ---

[Bug fortran/83344] Use of uninitialized memory with ASSOCIATE and strings

2017-12-09 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83344 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|