public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31495]  New: Is this continuation line legal?
@ 2007-04-06 17:31 michael dot a dot richmond at nasa dot gov
  2007-04-06 18:32 ` [Bug fortran/31495] " jvdelisle at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-06 17:31 UTC (permalink / raw)
  To: gcc-bugs

When I compile the program listed below I get the message:

Warning: '&' not allowed by itself in line 4

The other compilers I tried do not print any messages.

PROGRAM print_ascertain
CHARACTER (LEN=20) :: str
str = "Hello world &
& &
&"
END PROGRAM print_ascertain


-- 
           Summary: Is this continuation line legal?
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
@ 2007-04-06 18:32 ` jvdelisle at gcc dot gnu dot org
  2007-04-06 19:19 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-06 18:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2007-04-06 19:32 -------
Confirmed: The relevant section in the standard is 3.3.1.3 .  This diallows a
single '&' by it self on a line, but says nothing about two.  Part of th
eproblem is we treat ' ' (a blank) as non printable in the scanner.


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jvdelisle at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-04-06 19:32:47
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
  2007-04-06 18:32 ` [Bug fortran/31495] " jvdelisle at gcc dot gnu dot org
@ 2007-04-06 19:19 ` jvdelisle at gcc dot gnu dot org
  2007-04-21 21:25 ` patchapp at dberlin dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-06 19:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2007-04-06 20:18 -------
Index: scanner.c
===================================================================
--- scanner.c   (revision 123528)
Here is a preliminary patch, I a, testing some combinations so the final patch
may vary from this a bit.

+++ scanner.c   (working copy)
@@ -1071,7 +1071,7 @@ load_line (FILE *input, char **pbuf, int
       if (c == '&')
        seen_ampersand = 1;

-      if ((c != ' ' && c != '&' && c != '!') || (c == '!' && !seen_ampersand))
+      if ((c != '&' && c != '!') || (c == '!' && !seen_ampersand))
        seen_printable = 1;

       if (gfc_current_form == FORM_FREE 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
  2007-04-06 18:32 ` [Bug fortran/31495] " jvdelisle at gcc dot gnu dot org
  2007-04-06 19:19 ` jvdelisle at gcc dot gnu dot org
@ 2007-04-21 21:25 ` patchapp at dberlin dot org
  2007-04-21 21:34 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-04-21 21:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2007-04-21 22:25 -------
Subject: Bug number PR31495

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/2007-04/msg01357.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
                   ` (2 preceding siblings ...)
  2007-04-21 21:25 ` patchapp at dberlin dot org
@ 2007-04-21 21:34 ` jvdelisle at gcc dot gnu dot org
  2007-04-21 21:35 ` jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-21 21:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2007-04-21 22:34 -------
Subject: Bug 31495

Author: jvdelisle
Date: Sat Apr 21 22:34:04 2007
New Revision: 124022

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124022
Log:
2007-04-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/31495
        * scanner.c (load_line):  Remove check for comment after ampersand and
        adjust tracking of ampersand.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/scanner.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
                   ` (3 preceding siblings ...)
  2007-04-21 21:34 ` jvdelisle at gcc dot gnu dot org
@ 2007-04-21 21:35 ` jvdelisle at gcc dot gnu dot org
  2007-04-21 22:01 ` jvdelisle at gcc dot gnu dot org
  2007-05-29  8:05 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-21 21:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2007-04-21 22:35 -------
Fixed on trunk, closing


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
                   ` (4 preceding siblings ...)
  2007-04-21 21:35 ` jvdelisle at gcc dot gnu dot org
@ 2007-04-21 22:01 ` jvdelisle at gcc dot gnu dot org
  2007-05-29  8:05 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-21 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jvdelisle at gcc dot gnu dot org  2007-04-21 23:00 -------
Subject: Bug 31495

Author: jvdelisle
Date: Sat Apr 21 23:00:38 2007
New Revision: 124026

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124026
Log:
2007-04-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/31495
        * gfortran.dg/continuation_8.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/continuation_8.f90
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug fortran/31495] Is this continuation line legal?
  2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
                   ` (5 preceding siblings ...)
  2007-04-21 22:01 ` jvdelisle at gcc dot gnu dot org
@ 2007-05-29  8:05 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-29  8:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-05-29 08:05 -------
*** Bug 32138 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mathewc at nag dot co dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31495


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-29  8:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 17:31 [Bug fortran/31495] New: Is this continuation line legal? michael dot a dot richmond at nasa dot gov
2007-04-06 18:32 ` [Bug fortran/31495] " jvdelisle at gcc dot gnu dot org
2007-04-06 19:19 ` jvdelisle at gcc dot gnu dot org
2007-04-21 21:25 ` patchapp at dberlin dot org
2007-04-21 21:34 ` jvdelisle at gcc dot gnu dot org
2007-04-21 21:35 ` jvdelisle at gcc dot gnu dot org
2007-04-21 22:01 ` jvdelisle at gcc dot gnu dot org
2007-05-29  8:05 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).