From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13521 invoked by alias); 18 Jul 2010 07:09:40 -0000 Received: (qmail 13454 invoked by uid 48); 18 Jul 2010 07:09:25 -0000 Date: Sun, 18 Jul 2010 07:09:00 -0000 Message-ID: <20100718070925.13453.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/43179] ICE invalid if accessing array member of non-array In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pault 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: 2010-07/txt/msg01819.txt.bz2 ------- Comment #7 from pault at gcc dot gnu dot org 2010-07-18 07:09 ------- (In reply to comment #2) > (In reply to comment #1) > > This fixes it and regtests. > > + if (array->expr_type != EXPR_VARIABLE && array->expr_type != EXPR_FUNCTION) > > The patch looks OK, but actually I fail to see when an EXPR_FUNCTION is valid > in this case. If I try: Try allocatable_scalar_5.f90 Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43179