This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19101] New: missing & in character continuation not caught
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2004 09:42:01 -0000
- Subject: [Bug fortran/19101] New: missing & in character continuation not caught
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code is erroneous because
there's a & missing in the continuation
line:
$ cat char-cont-wrong.f90
program main
character (len=40) c
c = "Hello, &
world!"
print *,c
end program main
$ gfortran char-cont-wrong.f90
$ ./a.out
Hello, world!
I think a diagnostic is needed for this case.
--
Summary: missing & in character continuation not caught
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Thomas dot Koenig at online dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19101