public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34659]  New: corner case continuation line
@ 2008-01-03 20:20 jv244 at cam dot ac dot uk
  2008-01-04  7:42 ` [Bug fortran/34659] " burnus at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jv244 at cam dot ac dot uk @ 2008-01-03 20:20 UTC (permalink / raw)
  To: gcc-bugs

The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95', but does not do so with
gcc version 4.3.0 20080103 (experimental) [trunk revision 131300] (GCC)

 &

end


-- 
           Summary: corner case continuation line
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug fortran/34659] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
@ 2008-01-04  7:42 ` burnus at gcc dot gnu dot org
  2008-01-05  0:08 ` jvdelisle at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-01-04  7:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2008-01-04 07:24 -------
ifort:
Warning: Continuation character illegal as first non_blank in statement

NAG f95:
Error: Invalid continuation


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-04 07:24:27
               date|                            |


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


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

* [Bug fortran/34659] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
  2008-01-04  7:42 ` [Bug fortran/34659] " burnus at gcc dot gnu dot org
@ 2008-01-05  0:08 ` jvdelisle at gcc dot gnu dot org
  2008-01-06 19:51 ` [Bug fortran/34659] [4.3 Regression] " jvdelisle at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-01-05  0:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2008-01-04 23:56 -------
I will have a go on this one.


-- 

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|NEW                         |ASSIGNED
   Last reconfirmed|2008-01-04 07:24:27         |2008-01-04 23:56:49
               date|                            |


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


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

* [Bug fortran/34659] [4.3 Regression] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
  2008-01-04  7:42 ` [Bug fortran/34659] " burnus at gcc dot gnu dot org
  2008-01-05  0:08 ` jvdelisle at gcc dot gnu dot org
@ 2008-01-06 19:51 ` jvdelisle at gcc dot gnu dot org
  2008-01-06 23:27 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-01-06 19:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jvdelisle at gcc dot gnu dot org  2008-01-06 19:24 -------
This is a regression.  I thought in the back of my mind that I had this working
right before.  Sure enough, 4.2 gives a warning.

gfc42 -static pr34659.f90 
Warning: '&' not allowed by itself in line 1


-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|corner case continuation    |[4.3 Regression] corner case
                   |line                        |continuation line


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


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

* [Bug fortran/34659] [4.3 Regression] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2008-01-06 19:51 ` [Bug fortran/34659] [4.3 Regression] " jvdelisle at gcc dot gnu dot org
@ 2008-01-06 23:27 ` jvdelisle at gcc dot gnu dot org
  2008-01-07  5:50 ` 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 @ 2008-01-06 23:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2008-01-06 23:11 -------
This trivial patch fixes this:

Index: scanner.c
===================================================================
--- scanner.c   (revision 131355)
+++ scanner.c   (working copy)
@@ -1176,7 +1176,7 @@ load_line (FILE *input, char **pbuf, int
            seen_ampersand = 1;
        }

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

       /* Is this a fixed-form comment?  */

I will commit as such and add a test case.  I may refine on this a bit. :)


-- 


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


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

* [Bug fortran/34659] [4.3 Regression] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2008-01-06 23:27 ` jvdelisle at gcc dot gnu dot org
@ 2008-01-07  5:50 ` jvdelisle at gcc dot gnu dot org
  2008-01-07  6:54 ` jvdelisle at gcc dot gnu dot org
  2008-01-20  8:01 ` jvdelisle at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-01-07  5:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jvdelisle at gcc dot gnu dot org  2008-01-07 02:53 -------
Subject: Bug 34659

Author: jvdelisle
Date: Mon Jan  7 02:53:04 2008
New Revision: 131371

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131371
Log:
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR fortran/34659
        * scanner.c (load_line): Do not count ' ' as printable when checking
for
        continuations.

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


-- 


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


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

* [Bug fortran/34659] [4.3 Regression] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2008-01-07  5:50 ` jvdelisle at gcc dot gnu dot org
@ 2008-01-07  6:54 ` jvdelisle at gcc dot gnu dot org
  2008-01-20  8:01 ` jvdelisle at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-01-07  6:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jvdelisle at gcc dot gnu dot org  2008-01-07 03:17 -------
Fixed on trunk.


-- 

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=34659


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

* [Bug fortran/34659] [4.3 Regression] corner case continuation line
  2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2008-01-07  6:54 ` jvdelisle at gcc dot gnu dot org
@ 2008-01-20  8:01 ` jvdelisle at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-01-20  8:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jvdelisle at gcc dot gnu dot org  2008-01-20 06:49 -------
Subject: Bug 34659

Author: jvdelisle
Date: Sun Jan 20 06:48:39 2008
New Revision: 131673

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131673
Log:
2008-01-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

        PR libfortran/34795
        * gfortran.dg/inquire_13.f90: New test.

        PR libfortran/34659
        * gfortran.dg/continuation_9.f90: New test.

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


-- 


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


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

end of thread, other threads:[~2008-01-20  6:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-03 20:20 [Bug fortran/34659] New: corner case continuation line jv244 at cam dot ac dot uk
2008-01-04  7:42 ` [Bug fortran/34659] " burnus at gcc dot gnu dot org
2008-01-05  0:08 ` jvdelisle at gcc dot gnu dot org
2008-01-06 19:51 ` [Bug fortran/34659] [4.3 Regression] " jvdelisle at gcc dot gnu dot org
2008-01-06 23:27 ` jvdelisle at gcc dot gnu dot org
2008-01-07  5:50 ` jvdelisle at gcc dot gnu dot org
2008-01-07  6:54 ` jvdelisle at gcc dot gnu dot org
2008-01-20  8:01 ` jvdelisle 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).