public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30870]  New: incorrect error message for valid code
@ 2007-02-20  7:49 jv244 at cam dot ac dot uk
  2007-02-20 16:55 ` [Bug fortran/30870] GENERIC non-INTRINSIC procedure rejected as actual argument burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jv244 at cam dot ac dot uk @ 2007-02-20  7:49 UTC (permalink / raw)
  To: gcc-bugs

With recent trunk, gfortran incorrectly generates an error for the following
standard code:
MODULE TEST
 INTERFACE xx
   MODULE PROCEDURE xx
 END INTERFACE
 public :: xx
CONTAINS
 SUBROUTINE xx(i)
  INTEGER :: I
  I=7
 END SUBROUTINE
END
MODULE TOO
CONTAINS
 SUBROUTINE SUB(xx,I)
  INTERFACE
    SUBROUTINE XX(I)
        INTEGER :: I
    END SUBROUTINE
  END INTERFACE
  CALL XX(I)
 END SUBROUTINE
END MODULE TOO
PROGRAM TT
 USE TEST
 USE TOO
 INTEGER :: I
 CALL SUB(xx,I)
 IF (I.NE.7) CALL ABORT()
END PROGRAM


-- 
           Summary: incorrect error message for valid code
           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=30870


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

end of thread, other threads:[~2007-03-27  9:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-20  7:49 [Bug fortran/30870] New: incorrect error message for valid code jv244 at cam dot ac dot uk
2007-02-20 16:55 ` [Bug fortran/30870] GENERIC non-INTRINSIC procedure rejected as actual argument burnus at gcc dot gnu dot org
2007-02-21 10:47 ` pault at gcc dot gnu dot org
2007-03-12  6:55 ` pault at gcc dot gnu dot org
2007-03-12 15:25 ` pault at gcc dot gnu dot org
2007-03-15  6:45 ` pault at gcc dot gnu dot org
2007-03-27  9:04 ` [Bug fortran/30870] [4.1, 4.2 only] " pault 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).