This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66102] dependency mishandling with reallocation on assignment
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 May 2015 14:59:43 +0000
- Subject: [Bug fortran/66102] dependency mishandling with reallocation on assignment
- Auto-submitted: auto-generated
- References: <bug-66102-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66102
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #35518|0 |1
is obsolete| |
--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 35563
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35563&action=edit
Fixed test
The initial test was bogus, because [b, e] and [a, e] are not conformable.
Fixed as follows
--- comment_0.f90 2015-05-16 21:46:41.932079904 +0200
+++ realloc_on_assign_23_fixed.f90 2015-05-16 22:26:57.001112948 +0200
@@ -29,8 +29,8 @@
if (any([(b(i)%i, i=1,size(b))] /= [(i, i=1,size(b))])) call abort
contains
subroutine foo
- a = [a, e]
b = first_arg([b, e], [a, e])
+ a = [a, e]
end subroutine
elemental function first_arg(arg1, arg2)
type(t), intent(in) :: arg1, arg2