From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25660 invoked by alias); 27 Oct 2007 21:07:37 -0000 Received: (qmail 23919 invoked by uid 48); 27 Oct 2007 21:07:13 -0000 Date: Sat, 27 Oct 2007 21:07:00 -0000 Message-ID: <20071027210713.23918.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/33162] INTRINSIC functions as ACTUAL argument In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" 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: 2007-10/txt/msg02437.txt.bz2 ------- Comment #12 from burnus at gcc dot gnu dot org 2007-10-27 21:07 ------- (In reply to comment #8) > Interesting is whether the following should be accepted or not. [...] > EXTERNAL foo ! implicit interface > call sub(foo) ! sub's argument has an explicit interface gfortran, NAG f95 and Lahey rightfully reject it: "12.4.1.3 Actual arguments associated with dummy procedure entities" [...] "If the interface of the dummy argument is explicit, the characteristics listed in 12.2 shall be the same for the associated actual argument and the corresponding dummy argument" (openf95, sunf95, g95 and ifort accept this program; one could allow it for -std=gnu or legacy, but it is probably not worth the trouble.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33162