From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 945 invoked by alias); 16 Jun 2012 08:45:48 -0000 Received: (qmail 916 invoked by uid 22791); 16 Jun 2012 08:45:45 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jun 2012 08:45:31 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/53694] New: [OOP] GENERIC type-bound procs should be available without part-ref syntax Date: Sat, 16 Jun 2012 08:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg01062.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53694 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=3D27629 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--1= Do It is not obvious from the standard that this holds, but it is analog to ASSIGNMENT(=3D) and OPERATOR(...) which also act that way. [Which is suppor= ted 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=0Ced in a type de=0Cnition has the same generic= -spec as an inherited binding, it extends the generic interface and shall satisfy the requirements speci=0Ced in 12.4.3.4.5."