From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14296 invoked by alias); 15 Jun 2011 23:44:55 -0000 Received: (qmail 14286 invoked by uid 22791); 15 Jun 2011 23:44:54 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Jun 2011 23:44:41 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/49430] ICE with allocatable length character in interface block X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Keywords CC Blocks Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 15 Jun 2011 23:44:00 -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 X-SW-Source: 2011-06/txt/msg01399.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49430 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code CC| |burnus at gcc dot gnu.org Blocks| |45170 --- Comment #1 from Tobias Burnus 2011-06-15 23= :43:42 UTC --- I get: test.f90:19:0: internal compiler error: tree check: expected tree that cont= ains 'typed' structure, have '=EF=BF=BD' in fold_convert_loc, at fold-const.c:18= 59 =3D=3D14082=3D=3D Invalid read of size 1 =3D=3D14082=3D=3D at 0x72F9B2: fold_convert_loc (fold-const.c:1859) =3D=3D14082=3D=3D by 0xA7D3F6: build_range_type_1 (tree.c:7170) =3D=3D14082=3D=3D by 0x5C8C69: gfc_get_character_type_len_for_eltype (trans-types.c:977) =3D=3D14082=3D=3D by 0x59EA63: gfc_conv_procedure_call (trans-expr.c:353= 8) =3D=3D14082=3D=3D by 0x59F271: gfc_conv_function_expr (trans-expr.c:4082) =3D=3D14082=3D=3D by 0x597D01: gfc_trans_assignment_1 (trans-expr.c:6112) In trans-expr.c:3538: (gdb) p *ts.u.cl $2 =3D {length =3D 0x0, next =3D 0x0, length_from_typespec =3D 215 '\327', backend_decl =3D 0x1535340, passed_length =3D 0x2aaaacdd7f00, resolved =3D 6764539} I wonder whether the 3538 type =3D gfc_get_character_type (ts.kind, ts.u.cl); should be rather: type =3D gfc_get_character_type (ts.kind, ts->deferred ? NULL_TREE : ts.= u.cl);