public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32760]  New: [4.3 regression] Error defining subroutine named PRINT
@ 2007-07-13 22:38 anlauf at gmx dot de
  2007-07-13 23:45 ` [Bug fortran/32760] " dfranke at gcc dot gnu dot org
                   ` (32 more replies)
  0 siblings, 33 replies; 34+ messages in thread
From: anlauf at gmx dot de @ 2007-07-13 22:38 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following legal code fails to compile with
gfortran build 20070713:

module gfcbug68
  implicit none
  public :: print

contains

  subroutine foo (i)
    integer, intent(in)  :: i

    print *, i
  end subroutine foo

  subroutine print (m)
    integer, intent(in) :: m
  end subroutine print

end module gfcbug68


I get:

gfcbug68.f90:13.18:

  subroutine print (m)
                 1
Error: VARIABLE attribute of 'print' conflicts with PROCEDURE attribute at (1)
gfcbug68.f90:14.28:

    integer, intent(in) :: m
                           1
Error: Unexpected data declaration statement in CONTAINS section at (1)
gfcbug68.f90:15.5:

  end subroutine print
    1
Error: Expecting END MODULE statement at (1)
gfcbug68.f90:3.17:

  public :: print
                1
Error: Symbol 'print' at (1) has no IMPLICIT type


Reversing the subroutines removes (or hides) the problem.

Cheers,
-ha


-- 
           Summary: [4.3 regression] Error defining subroutine named PRINT
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2008-02-03 11:32 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-13 22:38 [Bug fortran/32760] New: [4.3 regression] Error defining subroutine named PRINT anlauf at gmx dot de
2007-07-13 23:45 ` [Bug fortran/32760] " dfranke at gcc dot gnu dot org
2007-07-14 10:21 ` anlauf at gmx dot de
2007-07-16  9:58 ` [Bug fortran/32760] " burnus at gcc dot gnu dot org
2007-07-17  4:26 ` jvdelisle at gcc dot gnu dot org
2007-07-22  4:08 ` jvdelisle at gcc dot gnu dot org
2007-07-22  8:21 ` dfranke at gcc dot gnu dot org
2007-07-22 17:39 ` dfranke at gcc dot gnu dot org
2007-07-24 19:54 ` dfranke at gcc dot gnu dot org
2007-07-24 19:59 ` dfranke at gcc dot gnu dot org
2007-07-24 20:51 ` dfranke at gcc dot gnu dot org
2007-07-26  4:03 ` jvdelisle at gcc dot gnu dot org
2007-07-26  4:54 ` jvdelisle at gcc dot gnu dot org
2007-07-26  4:56 ` jvdelisle at gcc dot gnu dot org
2007-07-26  6:58 ` dfranke at gcc dot gnu dot org
2007-07-27  5:47 ` patchapp at dberlin dot org
2007-07-27 16:30 ` jvdelisle at gcc dot gnu dot org
2007-07-27 16:34 ` jvdelisle at gcc dot gnu dot org
2007-07-27 16:53 ` jvdelisle at gcc dot gnu dot org
2008-01-22 23:19 ` anlauf at gmx dot de
2008-01-22 23:42 ` burnus at gcc dot gnu dot org
2008-01-23 15:59 ` [Bug fortran/32760] [4.3 Regression] " burnus at gcc dot gnu dot org
2008-01-23 16:47 ` burnus at gcc dot gnu dot org
2008-01-24  7:04 ` jvdelisle at gcc dot gnu dot org
2008-01-24  8:08 ` jvdelisle at gcc dot gnu dot org
2008-01-24 15:13 ` burnus at gcc dot gnu dot org
2008-01-24 15:22 ` burnus at gcc dot gnu dot org
2008-01-31 23:22 ` pault at gcc dot gnu dot org
2008-02-01  6:01 ` pault at gcc dot gnu dot org
2008-02-01  9:35 ` burnus at gcc dot gnu dot org
2008-02-02 21:32 ` dominiq at lps dot ens dot fr
2008-02-03 11:11 ` dominiq at lps dot ens dot fr
2008-02-03 11:31 ` pault at gcc dot gnu dot org
2008-02-03 11:32 ` 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).