From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10782 invoked by alias); 18 Oct 2008 10:22:10 -0000 Received: (qmail 10663 invoked by uid 48); 18 Oct 2008 10:20:50 -0000 Date: Sat, 18 Oct 2008 10:22:00 -0000 Message-ID: <20081018102050.10661.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35681] wrong result for vector subscripted array expression in MVBITS 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: 2008-10/txt/msg01195.txt.bz2 ------- Comment #9 from burnus at gcc dot gnu dot org 2008-10-18 10:20 ------- (In reply to comment #8) > ifort returns "2 2" and g95 "2 1". As far as I understand the scalarization > of elemental procedures, I think g95 is right. sunf95, openf95, NAG f95 and pathscale's pathf95 also return 2 1; Portland group's pgf95 has "2 2". I think we need an array temporary if an a variable appears twice in an argument list, if one of these arguments has an array section (except for whole-array sections "(:)"). Special care might be necessary: Pointers as actual argument and elemental functions of the type array = func(array(section)), I'm not sure and need to re-read the standard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35681