This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48462] [4.6/4.7 Regression] realloc on assignment: matmul Segmentation Fault with Allocatable Array


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48462

--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-19 16:32:41 UTC ---
Note: The commit from comment 9 fixes only the issue for non-TARGET LHS.

If the LHS has the TARGET attribute (and only* then) a version with an
additional temporary has to be used to make sure that associated pointers still
work; the standard mandates this for the case that the shape of the RHS is the
same as the one on the LHS.

(* the reason of the only is performance not semantics)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]