From rz48@rz.uni-karlsruhe.de  Fri Jan 31 16:10:26 1997
Received: from ratatosk.DK.net (root@ratatosk.DK.net [193.88.44.22]) by dkuug.dk (8.6.12/8.6.12) with ESMTP id QAA22865 for <sc22wg5@dkuug.dk>; Fri, 31 Jan 1997 16:10:25 +0100
Received: from nz11.rz.uni-karlsruhe.de (nz11.rz.uni-karlsruhe.de [129.13.64.7]) by ratatosk.DK.net (8.6.12/8.6.12) with ESMTP id QAA16871 for <sc22wg5@dkuug.dk>; Fri, 31 Jan 1997 16:09:59 +0100
Message-Id: <199701311509.QAA16871@ratatosk.DK.net>
Received: from ry71.rz.uni-karlsruhe.de by nz11.rz.uni-karlsruhe.de with SMTP (PP); Fri, 31 Jan 1997 15:19:29 +0100
Received: by ry71.rz.uni-karlsruhe.de
	(1.38.193.4/16.2) id AA07253; Fri, 31 Jan 1997 15:19:28 +0100
Subject: BIND(C) and generic interfaces
To: sc22wg5@dkuug.dk
Date: Fri, 31 Jan 1997 15:19:27 +0100 (CET)
From: hennecke@rz.uni-karlsruhe.de (Michael Hennecke)
Reply-To: hennecke@rz.uni-karlsruhe.de (Michael Hennecke)
X-Mailer: ELM [version 2.4 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Length: 1314      

There is one important restriction missing in N1237 (97-108): 

The argument association for BIND(C) procedures (3.4.2.1 of the TR) does 
not require an exact matching of the actual's and dummy's type/type-params/
rank, but also accepts actuals which are assignment-compatible to the dummy.

For this reason, N1237 should contain a restriction (probably in 3.4.1.5)
that a BIND(C) procedure is not allowed as a specific procedure within a
generic interface: resolving a procedure reference to such a generic 
procedure would be ambiguous. I'll bring the detailed specs to the meeting.

Thanks,
Michael

PS: Of course, a workaround for users who want to do this is to write a
    Fortran wrapper, and use that as the specific procedure...

 ======================================================================
  Michael Hennecke      http://www.uni-karlsruhe.de/~Michael.Hennecke/ 
 ----------------------------------------------------------------------
  University of Karlsruhe         RFC822: hennecke@rz.uni-karlsruhe.de 
  Computing Center (G20.21 R210)               No longer on BITNET :-(
  Zirkel 2  *  P.O. Box 69 80                 Phone: +49 721  608-4862 
  D-76128  Karlsruhe                               Fax: +49 721  32550 
 ======================================================================
