From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6564 invoked by alias); 18 Jun 2007 04:26:36 -0000 Received: (qmail 6532 invoked by uid 48); 18 Jun 2007 04:26:26 -0000 Date: Mon, 18 Jun 2007 04:26:00 -0000 Message-ID: <20070618042626.6531.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/32386] Pure function not allowed in specification expression In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl 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-06/txt/msg01427.txt.bz2 ------- Comment #6 from kargl at gcc dot gnu dot org 2007-06-18 04:26 ------- In section 7.1.6.2 (which you sight), I find A function is a specification function if it is a pure function, is not an intrinsic function, is not an internal function, is not a statement function, does not have a dummy procedure argument, and is not defined with the RECURSIVE keyword. Isn't s1 a dummy procedure argument in PURE FUNCTION halfit(s1) RESULT (s2) CHARACTER(*),INTENT(IN):: s1 Yes, I do get the usage of actual and dummy argument confused at times. I think stringa is your actual argument and s1 the dummy argument. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32386