$ cat continuation-2.f90 & end $ gfortran continuation-2.f90 $ cat continuation-3.f90 & end $ gfortran continuation-3.f90 $ gfortran -v Using built-in specs. Configured with: ../gcc-4.0-20050102/configure --prefix=/home/zfkts --enable-languages=c,c++,f95 Thread model: posix gcc version 4.0.0 20050102 (experimental) $ gfortran -dumpmachine ia64-unknown-linux-gnu Both programs above have the same syntax error: starting a statement with & is illegal.
The following is also illegal: $ cat continuation-4.f90 & ! This is a comment end $ gfortran continuation-4.f90
Confirmed. See 3.3.1.3.
*** Bug 20898 has been marked as a duplicate of this bug. ***
Isn't this related to or at least a dup of bug 19101?
(In reply to comment #4) > Isn't this related to or at least a dup of bug 19101? A different bug because a different provision of the standard is violated. Probably, a meta-bug "parser-related bugs" could be introduced with this bug, 19101 and a few more.
I have this one fixed and will combine it with the pathes for 19260 and 19262.
Subject: Bug number PR19261 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00281.html
Subject: Bug 19261 Author: jvdelisle Date: Sat Oct 14 15:06:34 2006 New Revision: 117733 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117733 Log: 2006-10-14 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/19261 * scanner.c (load_line): Add checks for illegal use of '&' and issue warnings. Issue errors with -pedantic. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/scanner.c
Fixed on svn trunk. Note: Could not get a test case to work properly with the dejagnu machinery.