public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/15051] New: Incorrect error for empty interface block
@ 2004-04-21 18:24 tow21 at cam dot ac dot uk
  2004-04-21 18:27 ` [Bug fortran/15051] [gfortran] " tow21 at cam dot ac dot uk
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tow21 at cam dot ac dot uk @ 2004-04-21 18:24 UTC (permalink / raw)
  To: gcc-bugs

Section 12.3.2.1 of the F95 standard indicates that the contents of an 
interface block are optional. gfortran currently gives an error on an empty 
interface block. (NAG f95 agrees with me that it should be ok.) 
 
parabrisas:~/test% cat test.f90      
       Program test 
  
       Interface test_interface 
       End Interface test_interface 
  
       End Program test 
 
parabrisas:~/test% gfortran test.f90 
 In file test.f90:4 
 
       End Interface test_interface 
                                  1 
Error: INTERFACE block at (1) is empty

-- 
           Summary: Incorrect error for empty interface block
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tow21 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
@ 2004-04-21 18:27 ` tow21 at cam dot ac dot uk
  2004-04-21 19:14 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tow21 at cam dot ac dot uk @ 2004-04-21 18:27 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Incorrect error for empty   |[gfortran] Incorrect error
                   |interface block             |for empty interface block


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
  2004-04-21 18:27 ` [Bug fortran/15051] [gfortran] " tow21 at cam dot ac dot uk
@ 2004-04-21 19:14 ` pinskia at gcc dot gnu dot org
  2004-04-21 20:38 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21 19:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
   Target Milestone|---                         |tree-ssa


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
  2004-04-21 18:27 ` [Bug fortran/15051] [gfortran] " tow21 at cam dot ac dot uk
  2004-04-21 19:14 ` pinskia at gcc dot gnu dot org
@ 2004-04-21 20:38 ` pinskia at gcc dot gnu dot org
  2004-04-22 14:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21 20:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-21 20:04 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-21 20:04:08
               date|                            |


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
                   ` (2 preceding siblings ...)
  2004-04-21 20:38 ` pinskia at gcc dot gnu dot org
@ 2004-04-22 14:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-01 15:18 ` bdavis at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-04-22 14:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-04-22 13:35 -------
I have a (trivial) patch for this. Waiting for my copyright assignment.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Tobias dot Schlueter at
                   |                            |physik dot uni-muenchen dot
                   |                            |de


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
                   ` (3 preceding siblings ...)
  2004-04-22 14:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-01 15:18 ` bdavis at gcc dot gnu dot org
  2004-05-08 16:16 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2004-05-01 15:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |Tobias dot Schlueter at
                   |dot org                     |physik dot uni-muenchen dot
                   |                            |de
             Status|NEW                         |ASSIGNED


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
                   ` (4 preceding siblings ...)
  2004-05-01 15:18 ` bdavis at gcc dot gnu dot org
@ 2004-05-08 16:16 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2004-05-14 18:37 ` tobi at gcc dot gnu dot org
  2004-05-14 18:37 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-05-08 16:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2004-05-08 16:16 -------
Patch here: http://gcc.gnu.org/ml/fortran/2004-05/msg00065.html

-- 


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
                   ` (5 preceding siblings ...)
  2004-05-08 16:16 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-14 18:37 ` tobi at gcc dot gnu dot org
  2004-05-14 18:37 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-05-14 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2004-05-14 13:34 -------
Fixed by the patch I just committed.

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


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


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

* [Bug fortran/15051] [gfortran] Incorrect error for empty interface block
  2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
                   ` (6 preceding siblings ...)
  2004-05-14 18:37 ` tobi at gcc dot gnu dot org
@ 2004-05-14 18:37 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-14 18:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-14 13:26 -------
Subject: Bug 15051

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	tobi@gcc.gnu.org	2004-05-14 13:26:03

Modified files:
	gcc/fortran    : ChangeLog parse.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.fortran-torture/compile: 
	                                                empty_interface_1.f90 

Log message:
	testsuite:
	
	PR fortran/15051
	* gfortran.fortran-torture/compile/empty_interface_1.f90: New
	test.
	
	fortran:
	
	PR fortran/15051
	* parse.c (parse_interface): Allow empty INTERFACE, remove
	seen_body.
	
	Also added ChangeLog entry missing from previous commit, removed umlaut from ChangeLog, and fixed previous entry to use tabs.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/parse.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3741&r2=1.3742
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/compile/empty_interface_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

end of thread, other threads:[~2004-05-14 13:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-21 18:24 [Bug fortran/15051] New: Incorrect error for empty interface block tow21 at cam dot ac dot uk
2004-04-21 18:27 ` [Bug fortran/15051] [gfortran] " tow21 at cam dot ac dot uk
2004-04-21 19:14 ` pinskia at gcc dot gnu dot org
2004-04-21 20:38 ` pinskia at gcc dot gnu dot org
2004-04-22 14:00 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-01 15:18 ` bdavis at gcc dot gnu dot org
2004-05-08 16:16 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-14 18:37 ` tobi at gcc dot gnu dot org
2004-05-14 18:37 ` cvs-commit 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).