This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/65903] [5/6 Regression] Line continuation followed by comment character in string fails to compile
- From: "laurent.chardon at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 May 2015 20:09:06 +0000
- Subject: [Bug fortran/65903] [5/6 Regression] Line continuation followed by comment character in string fails to compile
- Auto-submitted: auto-generated
- References: <bug-65903-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65903
--- Comment #4 from Laurent Chardon <laurent.chardon at gmail dot com> ---
Thanks for the fix. If I may suggest a modification of the testcase in order to
check also when there are no blanks between the & and !. I know in Fortran it
shouldn't matter, but I don't see any harm in making sure...
! { dg-do run }
! { dg-options "-std=gnu" }
!
character(20) :: astring
100 format ("& notblank !")
200 format ("& !")
300 format ("&!")
write(astring,100)
if (astring.ne."& notblank !") call abort
!print *, astring
write(astring,200)
if (astring.ne."& !") call abort
!print *, astring
write(astring,300)
if (astring.ne."&!") call abort
!print *, astring
end