From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46697 invoked by alias); 17 Sep 2015 18:07:26 -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 46663 invoked by uid 48); 17 Sep 2015 18:07:18 -0000 From: "gerhard.steinmetz.fortran@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67615] ICE on using arithmetic if with array instead of scalar Date: Thu, 17 Sep 2015 18:07: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: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gerhard.steinmetz.fortran@t-online.de X-Bugzilla-Status: UNCONFIRMED 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: 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-09/txt/msg01409.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67615 --- Comment #1 from Gerhard Steinmetz --- With an array constructor : $ cat z6.f90 program p if ( [1] ) 1, 2, 3 if ( [1, -1] ) 1, 2, 3 if ( [real :: 1, -1] ) 1, 2, 3 1 stop 1 2 stop 2 3 stop 3 end $ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z6.f90 z6.f90:2:0: if ( [1] ) 1, 2, 3 1 internal compiler error: in gfc_conv_array_constructor_expr, at fortran/trans-expr.c:6326