From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28929 invoked by alias); 10 Oct 2015 10:28:15 -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 28884 invoked by uid 48); 10 Oct 2015 10:28:11 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56423] F08/0071: Shall reject invalid Vector subscript target with Pointer assignment Date: Sat, 10 Oct 2015 10:28: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: 4.8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed cf_known_to_fail 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: 2015-10/txt/msg00768.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56423 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-10-10 Ever confirmed|0 |1 Known to fail| |4.8.5, 4.9.3, 5.2.0, 6.0 --- Comment #1 from Dominique d'Humieres --- >>From my version of the F2015 draft C725 (R737) The expr shall be a designator that designates a variable with either the TARGET or POINTER attribute and is not an array section with a vector subscript, or it shall be a reference to a function that returns a data pointer. Note that 't(x( [ 1,4,9,25 ] ))' is not rejected but gives an ICE from 4.8 up to trunk (6.0): [Book15] f90/bug% gfortran pr56423.f90 pr56423.f90:11:0: y = t(x( [ 1,4,9,25 ] )) ! (4) ! Invalid per IR F08/0071 but not rejected 1 internal compiler error: in gfc_conv_expr_descriptor, at fortran/trans-array.c:6702 where gfortran is 5.2.0.