From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BDD83857344; Wed, 28 Sep 2022 17:34:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BDD83857344 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664386451; bh=Qn9BqKCkpRpuyqMXCw3dBvnq1U463EPLc6mOWemD81U=; h=From:To:Subject:Date:From; b=rSNC7j0bZv4NQJLLiqFWU7GK6GzDuTPen2G2Np2wN61BysZ9Wf9pv6Y3r+ewNKp73 TvKdJvZY8x1CoJCVzwyDMwQe09pQhc7XnMUxNMenPQUx4vqYViRjqqMpSnrCXTj+k2 N42oAV+Gqwj21AG3T9L1SB0j3kbJKQLmP3BVOhxE= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107074] New: ICE: Bad IO basetype (8) Date: Wed, 28 Sep 2022 17:34:10 +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=3D107074 Bug ID: 107074 Summary: ICE: Bad IO basetype (8) 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: --- Affects versions down to at least r5 : (a is a procedure/function) $ cat z1.f90 program p implicit none integer :: a print *, a(1) print *, merge(a, a, .true.) end $ cat z2.f90 program p implicit none integer :: a print *, a() print *, merge(a, a, .true.) end $ gfortran-13-20220925 -c z1.f90 f951: internal compiler error: Bad IO basetype (8) 0x7f4459 gfc_report_diagnostic ../../gcc/fortran/error.cc:883 0x7f5fd7 gfc_internal_error(char const*, ...) ../../gcc/fortran/error.cc:1503 0x9308f6 transfer_expr ../../gcc/fortran/trans-io.cc:2532 0x934b3e gfc_trans_transfer(gfc_code*) ../../gcc/fortran/trans-io.cc:2686 0x8b1cd7 trans_code ../../gcc/fortran/trans.cc:2170 0x9323d2 build_dt ../../gcc/fortran/trans-io.cc:2051 0x8b1cf7 trans_code ../../gcc/fortran/trans.cc:2142 0x8e95d9 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.cc:7655 0x85afae translate_all_program_units ../../gcc/fortran/parse.cc:6671 0x85afae gfc_parse_file() ../../gcc/fortran/parse.cc:6977 0x8a925f gfc_be_parse_file ../../gcc/fortran/f95-lang.cc:229=