From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29F9C3898500; Mon, 11 May 2020 18:55:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29F9C3898500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589223303; bh=E6XOPMPYP4nDz7Ytd1wxDN+7Wv/uUabKqMxfvAGpSlg=; h=From:To:Subject:Date:From; b=LzlX2ymDofRupK2cCoChLBWAn3UZDjBQrVqDn4o31AMrJuOkpTLzsdPyxTIc4FMPg PDm/cqeTaq0hF4O5U/hTpSV6tv1qRRKs6ph32ad/9s5IUlXsZzRtn5MbQYvHzt2EX0 IfCQi612302UrYieqWImPtMDG8ON6iE8QvoH945U= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95068] New: [10/11 Regression] ICE in gfc_get_class_from_expr, at fortran/trans-expr.c:484 Date: Mon, 11 May 2020 18:55:03 +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: 11.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2020 18:55:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95068 Bug ID: 95068 Summary: [10/11 Regression] ICE in gfc_get_class_from_expr, at fortran/trans-expr.c:484 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20190922 and 20190929 : $ cat z1.f90 program p type t end type contains function f() result(x) class(t), allocatable :: x associate (y =3D> (f)) end associate end end $ gfortran-9 -c z1.f90 # no error z1.f90:7:23: 7 | associate (y =3D> (f)) | 1 Warning: Non-RECURSIVE procedure 'f' at (1) is possibly calling itself recursively. Declare it RECURSIVE or use '-frecursive' $ gfortran-11-20200510-chk -c z1.f90 z1.f90:7:23: 7 | associate (y =3D> (f)) | 1 Warning: Non-RECURSIVE procedure 'f' at (1) is possibly calling itself recursively. Declare it RECURSIVE or use '-frecursive' z1.f90:7:0: 7 | associate (y =3D> (f)) | internal compiler error: tree check: expected class 'expression', have 'declaration' (function_decl) in tree_operand_check, at tree.h:3792 0x61669c tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../gcc/tree.c:9736 0x776349 expr_check(tree_node*, char const*, int, char const*) ../../gcc/tree.h:3463 0x776349 tree_operand_check(tree_node*, int, char const*, int, char const*) ../../gcc/tree.h:3792 0x776349 gfc_get_class_from_expr(tree_node*) ../../gcc/fortran/trans-expr.c:484 0x7d2502 trans_associate_var ../../gcc/fortran/trans-stmt.c:2100 0x7d8d99 gfc_trans_block_construct(gfc_code*) ../../gcc/fortran/trans-stmt.c:2283 0x73a207 trans_code ../../gcc/fortran/trans.c:1960 0x77194d gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6835 0x77165c gfc_generate_contained_functions ../../gcc/fortran/trans-decl.c:5830 0x77165c gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6767 0x6ea066 translate_all_program_units ../../gcc/fortran/parse.c:6306 0x6ea066 gfc_parse_file() ../../gcc/fortran/parse.c:6545 0x7364ff gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210=