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/67430] reallocate lhs with overloaded assignment operators causes memory error and wrong size


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67430

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Am I correct to summarize (simplify?) your expectation (interpretation as:

use the overloaded assignment if the lhs and rhs are conforming, otherwise use
the intrinsic assignment?

If yes, what the compiler should do if some bounds are only known at run time?

I agree with the first comment of Ian Harvey at
https://groups.google.com/forum/#!topic/comp.lang.fortran/Vk4D8iDZOdc.

I have no opinion for the second test in the above thread, beside a "don't do
that!". If you think it is a gfortran bug, please file a new PR and, if
possible, outputs from other compilers you have access to.


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