public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/40993]  New: Empty error message with long lines
@ 2009-08-07  6:50 arjen dot markus at deltares dot nl
  2009-08-07 16:06 ` [Bug fortran/40993] " jvdelisle at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: arjen dot markus at deltares dot nl @ 2009-08-07  6:50 UTC (permalink / raw)
  To: gcc-bugs

I ran into a peculiar bug with gfortran:

program check
   open( 10, file = 'check.inp', form = 'binary' )
                                                           ! Comment
end program

(the comment starts at column 132, but the problem actually occurs in
a long linje with trailing blanks too)

The output from the compiler is:

check.f90:2.132:

                                                                         !

  1
Error: FORM specifier in OPEN statement at (1) has invalid value 'binary'

Note that the offending code is being omitted, while for shorter
lines, the code is visible.

This was on Windows XP/MingW, with gfortran 4.3.2 (4.3.2-tdm-1 for MingW)


-- 
           Summary: Empty error message with long lines
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: arjen dot markus at deltares dot nl
 GCC build triplet: i586-pc-mingw32
  GCC host triplet: i586-pc-mingw32
GCC target triplet: i586-pc-mingw32


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


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

* [Bug fortran/40993] Empty error message with long lines
  2009-08-07  6:50 [Bug fortran/40993] New: Empty error message with long lines arjen dot markus at deltares dot nl
@ 2009-08-07 16:06 ` jvdelisle at gcc dot gnu dot org
  2009-10-10  0:43 ` jvdelisle at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-08-07 16:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jvdelisle at gcc dot gnu dot org  2009-08-07 16:06 -------
The problem is that the error locus is at the end of the line rather then the
end of the non-whitespace characters of the related statement.


-- 

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         |2009-08-07 16:06:07
               date|                            |


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


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

* [Bug fortran/40993] Empty error message with long lines
  2009-08-07  6:50 [Bug fortran/40993] New: Empty error message with long lines arjen dot markus at deltares dot nl
  2009-08-07 16:06 ` [Bug fortran/40993] " jvdelisle at gcc dot gnu dot org
@ 2009-10-10  0:43 ` jvdelisle at gcc dot gnu dot org
  2009-10-31  1:45 ` jvdelisle at gcc dot gnu dot org
  2010-05-06 21:30 ` dfranke at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-10-10  0:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2009-10-10 00:42 -------
The problem here is we don't pass the expression locus to the tag checking
routine so the best it can do is the end of the line.  To fix this is fairly
mechanical, but affects many places.


-- 


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


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

* [Bug fortran/40993] Empty error message with long lines
  2009-08-07  6:50 [Bug fortran/40993] New: Empty error message with long lines arjen dot markus at deltares dot nl
  2009-08-07 16:06 ` [Bug fortran/40993] " jvdelisle at gcc dot gnu dot org
  2009-10-10  0:43 ` jvdelisle at gcc dot gnu dot org
@ 2009-10-31  1:45 ` jvdelisle at gcc dot gnu dot org
  2010-05-06 21:30 ` dfranke at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2009-10-31  1:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

jvdelisle at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|jvdelisle at gcc dot gnu dot|unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug fortran/40993] Empty error message with long lines
  2009-08-07  6:50 [Bug fortran/40993] New: Empty error message with long lines arjen dot markus at deltares dot nl
                   ` (2 preceding siblings ...)
  2009-10-31  1:45 ` jvdelisle at gcc dot gnu dot org
@ 2010-05-06 21:30 ` dfranke at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-06 21:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dfranke at gcc dot gnu dot org  2010-05-06 21:29 -------


*** This bug has been marked as a duplicate of 29819 ***


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2010-05-06 21:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07  6:50 [Bug fortran/40993] New: Empty error message with long lines arjen dot markus at deltares dot nl
2009-08-07 16:06 ` [Bug fortran/40993] " jvdelisle at gcc dot gnu dot org
2009-10-10  0:43 ` jvdelisle at gcc dot gnu dot org
2009-10-31  1:45 ` jvdelisle at gcc dot gnu dot org
2010-05-06 21:30 ` dfranke 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).