public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55895] New: multiple type-bound procedures
@ 2013-01-07 13:21 valeryweber at hotmail dot com
2013-01-07 13:52 ` [Bug fortran/55895] " burnus at gcc dot gnu.org
2013-06-17 15:24 ` dominiq at lps dot ens.fr
0 siblings, 2 replies; 3+ messages in thread
From: valeryweber at hotmail dot com @ 2013-01-07 13:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55895
Bug #: 55895
Summary: multiple type-bound procedures
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
Should gfortran complain with the following code (so far it doesnt with the
trunk)?
Valery
module aaaa
type :: t
contains
procedure ::foo => afoo, bfoo
end type t
contains
subroutine afoo(this)
class(t) :: this
end subroutine afoo
subroutine bfoo(this)
class(t) :: this
end subroutine bfoo
end module aaaa
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/55895] multiple type-bound procedures
2013-01-07 13:21 [Bug fortran/55895] New: multiple type-bound procedures valeryweber at hotmail dot com
@ 2013-01-07 13:52 ` burnus at gcc dot gnu.org
2013-06-17 15:24 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-01-07 13:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55895
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-01-07
CC| |burnus at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-01-07 13:51:52 UTC ---
(In reply to comment #0)
> Should gfortran complain with the following code
I think it okay:
procedure ::foo => afoo, bfoo
is equivalent to:
procedure :: foo => afoo
procedure :: bfoo => bfoo
>From Fortran 2008:
R448 type-bound-procedure-stmt
is PROCEDURE [ [ , binding-attr -list ] :: ] type-bound-proc-decl-list
R449 type-bound-proc-decl is binding-name [ => procedure-name ]
C464 (R448) If => procedure-name appears in a type-bound-proc-decl, the
double-colon separator shall appear.
If neither => procedure-name nor interface-name appears in a
type-bound-proc-decl, it is as though => procedure-name had appeared with a
procedure name the same as the binding name.
Note: Fortran 2003 didn't allow a list, i.e. with -std=f2003 it is correctly
rejected.
Fortran 2003:
R451 specific-binding
is PROCEDURE [ (interface-name) ] [ [ , binding-attr -list ] :: ]
binding-name [ => procedure-name ]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/55895] multiple type-bound procedures
2013-01-07 13:21 [Bug fortran/55895] New: multiple type-bound procedures valeryweber at hotmail dot com
2013-01-07 13:52 ` [Bug fortran/55895] " burnus at gcc dot gnu.org
@ 2013-06-17 15:24 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-17 15:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55895
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
No answer since five months. Closing as INVALID. Please reopen if I am wrong.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-17 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07 13:21 [Bug fortran/55895] New: multiple type-bound procedures valeryweber at hotmail dot com
2013-01-07 13:52 ` [Bug fortran/55895] " burnus at gcc dot gnu.org
2013-06-17 15:24 ` dominiq at lps dot ens.fr
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).