From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A7943858C52; Wed, 21 Sep 2022 17:32:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A7943858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663781548; bh=RF1TKx68H2QqDuw0CBNcvlAtHpNa4etFmspQ4MW/jpA=; h=From:To:Subject:Date:From; b=Tri3WICZxmofLQ++U+y39s4W72OKytD37cV7JjTb0L+aAVI1kYtRy+SG0NUkVgyvt ciduDgK+UiHjXgeFjH/cl12gNPDEScqYqRllv4hnOz0LCb8YDdtgJoHUYqtWeJO5re eedelkXIhZxPXfxU8ZKXiS7GCSMQRdqr2KoxPDYc= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106999] New: [11/12/13 Regression] ICE tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_class_data_get, at fortran/trans-expr.cc:233 Date: Wed, 21 Sep 2022 17:32:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106999 Bug ID: 106999 Summary: [11/12/13 Regression] ICE tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_class_data_get, at fortran/trans-expr.cc:233 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started with r11 before 20200503 : $ cat z1.f90 program p type t procedure(g), pointer :: f end type class(t), allocatable :: z call s(z%f) contains subroutine g(x) class(t) :: x end subroutine s(x) class(*) :: x end end $ gfortran-13-20220918 -c z1.f90 $ gfortran-10 -c z1.f90 $ gfortran-10 -c z1.f90 -fcheck=3Dall $ $ gfortran-13-20220918 -c z1.f90 -fcheck=3Dall z1.f90:6:14: 6 | call s(z%f) | 1 internal compiler error: tree check: expected record_type or union_type or qual_union_type, have function_type in gfc_class_data_get, at fortran/trans-expr.cc:233 0x6c055a tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.cc:8827 0x8ec48b tree_check3(tree_node*, char const*, int, char const*, tree_code, tree_code, tree_code) ../../gcc/tree.h:3560 0x8ec48b gfc_class_data_get(tree_node*) ../../gcc/fortran/trans-expr.cc:233 0x8f6b46 gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec*) ../../gcc/fortran/trans-expr.cc:7228 0x9580b0 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool) ../../gcc/fortran/trans-stmt.cc:422 0x8b0aa6 trans_code ../../gcc/fortran/trans.cc:2018 0x8e8009 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.cc:7654 0x859a2e translate_all_program_units ../../gcc/fortran/parse.cc:6671 0x859a2e gfc_parse_file() ../../gcc/fortran/parse.cc:6977 0x8a7ccf gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=