From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24389 invoked by alias); 28 Nov 2011 16:38:59 -0000 Received: (qmail 24278 invoked by uid 22791); 28 Nov 2011 16:38:57 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Mon, 28 Nov 2011 16:38:43 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51334] New: [OOP] ICE with type-bound operator: tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_conv_component_ref, at fortran/trans-expr.c:556 Date: Mon, 28 Nov 2011 17:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: Message-ID: 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 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-11/txt/msg02678.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51334 Bug #: 51334 Summary: [OOP] ICE with type-bound operator: tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_conv_component_ref, at fortran/trans-expr.c:556 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org CC: janus@gcc.gnu.org Created attachment 25938 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25938 Failing program Found at http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/d9df9= 83132fcc643 Arjen Markus reports there that his program ICEs with GCC 4.6; it also does= so with GCC the trunk. It does compile with ifort 12.1 (but not with 12.0); however, there are unresolved symbols with ifort 12.1. It fails to compile = with PGI 11.5 and crayftn 7.1.4.111, but those errors look bogus. In gfortran 4.7: Test.f90: In function =E2=80=98test_pde_solver=E2=80=99: Test.f90:375:0: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_conv_component_ref= , at fortran/trans-expr.c:556 The line of interest is: deriv =3D diff * solution%nabla2() The ICE is in gfc_conv_component_ref; debugging shows: (gdb) p c->name $2 =3D 0x2aaaacf09050 "_vptr" (gdb) p debug_tree(decl)