This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/83540] [8 Regression] Invalid code with MATMUL, -fno-realloc-lhs -ffrontend-optimize
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 24 Dec 2017 08:48:55 +0000
- Subject: [Bug fortran/83540] [8 Regression] Invalid code with MATMUL, -fno-realloc-lhs -ffrontend-optimize
- Auto-submitted: auto-generated
- References: <bug-83540-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83540
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Harald Anlauf from comment #4)
> (In reply to Dominique d'Humieres from comment #3)
> > The code uses ALLOCATE without any realloc-lhs!-(
>
> The problem shows up for any use of MATMUL as argument
> to a procedure, whether user-defined or intrinsic.
> Maybe the problem is just related to the needed temporary.
Correct, reallocation on assignment is used at the momemt
for creating the temporaries if the bounds are unknown.