This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48746] [4.6/4.7 Regression] Matmul with allocate on assignment
- 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: Wed, 27 Apr 2011 15:11:15 +0000
- Subject: [Bug fortran/48746] [4.6/4.7 Regression] Matmul with allocate on assignment
- Auto-submitted: auto-generated
- References: <bug-48746-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48746
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-04-27 15:07:21 UTC ---
(In reply to comment #3)
> (In reply to comment #1)
> > Problem here is that the return array "dtype" field is uninitialized when
> > lhs is (unallocated) allocatable. Due to this there are also similiar
> > problems in other intrinsics such as reshape(), etc...
>
> Interesting observation. This works:
... well, for a given value of "works". tmp keeps its size of 3*3.