From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD0FF3856241; Tue, 21 Jun 2022 18:51:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD0FF3856241 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/106048] New: [10/11/12/13 Regression] ICE in ubsan_encode_value, at ubsan.cc:143 / verify_gimple failed Date: Tue, 21 Jun 2022 18:51:24 +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 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: Tue, 21 Jun 2022 18:51:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106048 Bug ID: 106048 Summary: [10/11/12/13 Regression] ICE in ubsan_encode_value, at ubsan.cc:143 / verify_gimple failed 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 r7, with and without -fsanitize=3Dundefined : $ cat z1.f90 program p integer :: real print *, real(2) associate (y =3D> real+real) print *, y end associate end $ cat z2.f90 program p integer :: n print *, n(2) associate (y =3D> n+n) print *, y end associate end $ gfortran-13-20220619 -c z1.f90 /tmp/cc97osCU.s: Assembler messages: /tmp/cc97osCU.s:35: Error: junk `(intrinsic)_MOD_real' after expression $ gfortran-13-20220619 -c z1.f90 -fsanitize=3Dundefined during RTL pass: expand z1.f90:5:16: 5 | print *, y | ^ internal compiler error: in ubsan_encode_value, at ubsan.cc:143 0xcf9ca2 ubsan_encode_value(tree_node*, ubsan_encode_value_phase) ../../gcc/ubsan.cc:143 0xcfe316 ubsan_build_overflow_builtin(tree_code, unsigned int, tree_node*, tree_node*, tree_node*, tree_node**) ../../gcc/ubsan.cc:1562 0xa72326 expand_mul_overflow ../../gcc/internal-fn.cc:2270 0xa749c6 expand_UBSAN_CHECK_MUL ../../gcc/internal-fn.cc:2516 0x8820e7 expand_call_stmt ../../gcc/cfgexpand.cc:2737 0x8820e7 expand_gimple_stmt_1 ../../gcc/cfgexpand.cc:3869 0x8820e7 expand_gimple_stmt ../../gcc/cfgexpand.cc:4033 0x887297 expand_gimple_basic_block ../../gcc/cfgexpand.cc:6085 0x889d5e execute ../../gcc/cfgexpand.cc:6811 --- gcc configured with --enable-checking=3Dyes : $ gfortran-13-20220619 -c z1.f90 z1.f90:1:9: 1 | program p | ^ Error: type mismatch in binary expression integer(kind=3D4) integer(kind=3D4) (*) () integer(kind=3D4) _1 =3D real * 2; z1.f90:1:9: internal compiler error: 'verify_gimple' failed 0xed9e9d verify_gimple_in_seq(gimple*) ../../gcc/tree-cfg.cc:5217 0xb557b1 gimplify_body(tree_node*, bool) ../../gcc/gimplify.cc:16543 0xb55a55 gimplify_function_tree(tree_node*) ../../gcc/gimplify.cc:16659 0x964c47 cgraph_node::analyze() ../../gcc/cgraphunit.cc:676 0x967ef6 analyze_functions ../../gcc/cgraphunit.cc:1241 0x9690cd symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2501=