public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53694] New: [OOP] GENERIC type-bound procs should be available without part-ref syntax
@ 2012-06-16  8:45 burnus at gcc dot gnu.org
  2012-06-17  8:52 ` [Bug fortran/53694] " janus at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-06-16  8:45 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53694
           Summary: [OOP] GENERIC type-bound procs should be available
                    without part-ref syntax
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Created attachment 27629
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27629
test.f90

If "sqrt" is a generic type-bound procedure, not only something like
  a%sqrt()  or  a%sqrt(b)   [for pass and nopass, respectively]
should work but also a simple:
  sqrt(a)   or  sqrt(a, b)

That is: The generic enter the normal generic namespace with the exception that
  use, only: type
also imports the generic name for that type.

See also: https://groups.google.com/forum/#!msg/comp.lang.fortran/YDt3j0--1Do


It is not obvious from the standard that this holds, but it is analog to
ASSIGNMENT(=) and OPERATOR(...) which also act that way. [Which is supported in
gfortran.]  Additionally, the following statement (F2008,4.5.7.3 Type-bound
procedure overriding) wouldn't make sense with a different interpretation of
the standard:

"If a generic binding speci\fed in a type de\fnition has the same generic-spec as
an inherited binding, it extends the generic interface and shall satisfy the
requirements speci\fed in 12.4.3.4.5."


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

end of thread, other threads:[~2012-06-21 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-16  8:45 [Bug fortran/53694] New: [OOP] GENERIC type-bound procs should be available without part-ref syntax burnus at gcc dot gnu.org
2012-06-17  8:52 ` [Bug fortran/53694] " janus at gcc dot gnu.org
2012-06-17 17:20 ` janus at gcc dot gnu.org
2012-06-17 19:07 ` burnus at gcc dot gnu.org
2012-06-17 22:03 ` janus at gcc dot gnu.org
2012-06-19  9:53 ` janus at gcc dot gnu.org
2012-06-19 10:47 ` janus at gcc dot gnu.org
2012-06-19 21:56 ` janus at gcc dot gnu.org
2012-06-21 14:39 ` burnus 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).