public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/14956] New: does not support # of line longer than 80 character
@ 2004-04-14 17:52 cheng_gong at yahoo dot com
  2004-04-14 18:26 ` [Bug fortran/14956] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: cheng_gong at yahoo dot com @ 2004-04-14 17:52 UTC (permalink / raw)
  To: gcc-bugs

for g77 compiler, it support # to lines longer than 80 character, the following
code can cause error.
      subroutine initialize(mode,number_of_output,nstartnm,
     #     startnm,startch)

-- 
           Summary: does not support # of line longer than 80 character
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cheng_gong at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/14956] [gfortran] does not support # of line longer than 80 character
  2004-04-14 17:52 [Bug fortran/14956] New: does not support # of line longer than 80 character cheng_gong at yahoo dot com
@ 2004-04-14 18:26 ` pinskia at gcc dot gnu dot org
  2004-04-14 19:45 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-14 18:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
            Summary|does not support # of line  |[gfortran] does not support
                   |longer than 80 character    |# of line longer than 80
                   |                            |character
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/14956] [gfortran] does not support # of line longer than 80 character
  2004-04-14 17:52 [Bug fortran/14956] New: does not support # of line longer than 80 character cheng_gong at yahoo dot com
  2004-04-14 18:26 ` [Bug fortran/14956] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-04-14 19:45 ` pinskia at gcc dot gnu dot org
  2004-04-15 17:23 ` bdavis9659 at comcast dot net
  2004-04-15 18:06 ` pbrook at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-14 19:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-14 19:13 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-14 19:13:29
               date|                            |


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


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

* [Bug fortran/14956] [gfortran] does not support # of line longer than 80 character
  2004-04-14 17:52 [Bug fortran/14956] New: does not support # of line longer than 80 character cheng_gong at yahoo dot com
  2004-04-14 18:26 ` [Bug fortran/14956] [gfortran] " pinskia at gcc dot gnu dot org
  2004-04-14 19:45 ` pinskia at gcc dot gnu dot org
@ 2004-04-15 17:23 ` bdavis9659 at comcast dot net
  2004-04-15 18:06 ` pbrook at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-15 17:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bdavis9659 at comcast dot net  2004-04-15 16:43 -------
I think this is just the difference between fixed and free source format:

$ cat xx.f
      subroutine initialize(mode,number_of_output,nstartnm,
     #     startnm,startch)
      end
 
$ g77 -c xx.f
$ gfortran -c xx.f

when compiling a .f file, gfortran assumes fixed (F77) style source.

But when given, a .f90 file, it assumes free format, which detects the "#" as a
spurious character, not "something in column 6".

$ mv xx.f xx.f90
$ gfortran xx.f90
 In file xx.f90:1
 
      subroutine initialize(mode,number_of_output,nstartnm,
     1
Error: Unclassifiable statement at (1)
 In file xx.f90:2
 
     #     startnm,startch)
    1
Error: Unclassifiable statement at (1)


Which is fine.

I think this PR can be closed.  Works as it should.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/14956] [gfortran] does not support # of line longer than 80 character
  2004-04-14 17:52 [Bug fortran/14956] New: does not support # of line longer than 80 character cheng_gong at yahoo dot com
                   ` (2 preceding siblings ...)
  2004-04-15 17:23 ` bdavis9659 at comcast dot net
@ 2004-04-15 18:06 ` pbrook at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-04-15 18:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pbrook at gcc dot gnu dot org  2004-04-15 17:09 -------
gfortran assumes a source form based on the file extension. 
 
Use -ffixed-form to compile a fixed-form file with a .f90 extension. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2004-04-15 17:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14 17:52 [Bug fortran/14956] New: does not support # of line longer than 80 character cheng_gong at yahoo dot com
2004-04-14 18:26 ` [Bug fortran/14956] [gfortran] " pinskia at gcc dot gnu dot org
2004-04-14 19:45 ` pinskia at gcc dot gnu dot org
2004-04-15 17:23 ` bdavis9659 at comcast dot net
2004-04-15 18:06 ` pbrook 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).