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/68147] Potential incorrect code generation for string self-assignment


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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I use

    print *, len(name), "'", name, "'"

I get

5 'a.o  '

> If I remove the if-statement, the code works as expected.

I see that too.


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