From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13411 invoked by alias); 20 Sep 2013 06:22:14 -0000 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 Received: (qmail 13355 invoked by uid 48); 20 Sep 2013 06:22:12 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58099] [4.8/4.9 Regression] [F03] over-zealous procedure-pointer error checking Date: Fri, 20 Sep 2013 06:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01461.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58099 --- Comment #14 from Tobias Burnus --- Janus' submitted patch: http://gcc.gnu.org/ml/fortran/2013-08/msg00026.html Looks great and fixes also comment 10's test case. * * * I tried to test for the "intrinsic elemental" of comment 2's standard quote. That works without "elemental" in the INTERFACE but not with. However, the standard states for "acos": "Class. Elemental function." Nonetheless, gfortran prints: Error: Interface mismatch in procedure pointer assignment at (1): Mismatch in PURE attribute" for intrinsic acos interface elemental real function oo(x) ! Works (and should work) without "elemental" real, intent(in) :: x end function end interface procedure(oo),pointer :: bar bar => acos end