From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29575 invoked by alias); 5 Oct 2013 10:32:16 -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 29534 invoked by uid 48); 5 Oct 2013 10:32:12 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58618] ICE with character substring and ASSOCIATE Date: Sat, 05 Oct 2013 10:32: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-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW 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: keywords bug_status cf_reconfirmed_on cc short_desc 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: 2013-10/txt/msg00274.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58618 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2013-10-05 CC| |burnus at gcc dot gnu.org Summary|ICE with character array |ICE with character |and ASSOCIATE |substring and ASSOCIATE Ever confirmed|0 |1 Known to fail| |4.8.1, 4.9.0 --- Comment #1 from Tobias Burnus --- The ICE occurs in resolve_fl_variable 10795 e = sym->ts.u.cl->length; Here, sym is "x" and ts.u.cl == NULL. Without the substring, ts.u.cl matches "s"'s ts.u.cl (same pointer address). The variable is set in parse.c's parse_associate: 3404 sym->ts = a->target->ts; If the RHS is not a substring, it works. If it is, a->target->ts.u.cl is NULL and the length is only in the REF_SUBSTRING expression at a->target->ref->next->u.ss.length->length