This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68147] Potential incorrect code generation for string self-assignment
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Oct 2015 17:31:17 +0000
- Subject: [Bug fortran/68147] Potential incorrect code generation for string self-assignment
- Auto-submitted: auto-generated
- References: <bug-68147-4 at http dot gcc dot gnu dot org/bugzilla/>
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.