From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7036 invoked by alias); 18 Jan 2012 10:17:09 -0000 Received: (qmail 7027 invoked by uid 22791); 18 Jan 2012 10:17:08 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Wed, 18 Jan 2012 10:16:56 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/50981] [4.4/4.5/4.6 Regression] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument Date: Wed, 18 Jan 2012 10:45: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-Keywords: wrong-code 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: mikael at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.4.7 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" 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-01/txt/msg01985.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50981 --- Comment #20 from Tobias Burnus 2012-01-18 10:16:10 UTC --- Status: a) Passing absent optional as actual argument to elemental procedures. 4.4-4.7 Regression. Fixed on the 4.7 trunk, needs backporting. See comment 5 / http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00206.html b) Passing unallocated allocatable / unassociated pointer: Affects 4.6/4.7; fixed on the 4.7 trunk with comment 19 http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00793.html Consider backporting to 4.6. c) Issues with polymorphism and elemental See testcase of comment 13 and draft patch of comment 16 and comment 18. (A tiny part of the patch has been committed in comment 19.) That's a trunk-only item.