public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55234] New: module procedure potential syntax error within interface block
@ 2012-11-07 15:39 valeryweber at hotmail dot com
  2012-11-07 16:46 ` [Bug fortran/55234] " janus at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: valeryweber at hotmail dot com @ 2012-11-07 15:39 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55234
           Summary: module procedure potential syntax error within
                    interface block
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: valeryweber@hotmail.com


Dear All

I wonder if the "::" is not a syntax error in the following interface block?
While gfortran goes through, other compilers like xlf or pgf90 complain about
it.

gcc version 4.8.0 20121107 (experimental) (GCC) 

module mod
  interface foo
     module procedure :: foo1
  end interface
contains
  subroutine foo1 ( )
  end subroutine foo1
end module mod

Valery


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

* [Bug fortran/55234] module procedure potential syntax error within interface block
  2012-11-07 15:39 [Bug fortran/55234] New: module procedure potential syntax error within interface block valeryweber at hotmail dot com
@ 2012-11-07 16:46 ` janus at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: janus at gcc dot gnu.org @ 2012-11-07 16:46 UTC (permalink / raw)
  To: gcc-bugs


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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |janus at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #1 from janus at gcc dot gnu.org 2012-11-07 16:46:07 UTC ---
(In reply to comment #0)
> I wonder if the "::" is not a syntax error in the following interface block?

No, this is certainly valid in Fortran 2008:

R1206 procedure-stmt is [ MODULE ] PROCEDURE [ :: ] procedure-name-list

So, the "::" is allowed, but optional. Note that it is not allowed according to
Fortran 2003, so gfortran will reject it with -std=f2003.



> While gfortran goes through, other compilers like xlf or pgf90 complain about
> it.

You should submit a bugreport to those guys instead ...


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

end of thread, other threads:[~2012-11-07 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07 15:39 [Bug fortran/55234] New: module procedure potential syntax error within interface block valeryweber at hotmail dot com
2012-11-07 16:46 ` [Bug fortran/55234] " janus at gcc dot gnu.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).