From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C7C43858D3C; Sun, 24 Oct 2021 23:54:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C7C43858D3C From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95375] ICE in add_use_op, Error: mismatching comparison operand types Date: Sun, 24 Oct 2021 23:54:24 +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: 11.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc Message-ID: In-Reply-To: References: 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: Sun, 24 Oct 2021 23:54:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95375 sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org --- Comment #2 from sandra at gcc dot gnu.org --- Current behavior on master is to warn, then ICE: $ x86_64-linux-gnu-gfortran -c z1.f90 z1.f90:1:0: 1 | function f() result(n) bind(c) |=20 ...... 6 | function f() result(n) bind(c) | 2 Warning: Type mismatch in function result (INTEGER(4)/CLASS(*)) between (1)= and (2) z1.f90:4:9: 4 | program p | ^ Error: mismatching comparison operand types struct __class__STAR_a integer(kind=3D4) if (D.4230 !=3D 0) goto ; else goto ; z1.f90:4:9: internal compiler error: 'verify_gimple' failed 0xfd471d verify_gimple_in_seq(gimple*) /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/tree-cfg.c:5229 0xcee7b6 gimplify_body(tree_node*, bool) /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/gimplify.c:15913 0xcee97d gimplify_function_tree(tree_node*) /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/gimplify.c:15984 0xb1a3b7 cgraph_node::analyze() /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/cgraphunit.c:670 0xb1cec7 analyze_functions /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/cgraphunit.c:1234 0xb1db5d symbol_table::finalize_compilation_unit() /scratch/sandra/x86-fsf/src/gcc-mainline/gcc/cgraphunit.c:2508 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=