From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C60913858D1E; Sat, 15 Oct 2022 20:24:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C60913858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665865469; bh=+wjIDFuQeZK30KHOcSWh5O4jza5GY0NN4DbtgJz2xrs=; h=From:To:Subject:Date:From; b=JXZZobmBK0tbRbzypGj6o1NnzgRpTfXtjZ2nd6ObYZPDtukhx4oJZORvBX9eQQqZK Wk399lKmS/3DlUQ3dDV8iLRF8FOkYHzjHm4VPKSBIRWzBqUgG2mKoOwkVmkOXiFG9i wvGv74pO4ZrquKaR8/47o5csmD4x+uMsX6T3zgkg= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107272] New: ICE in gfc_compare_string and others (related to pr107217) Date: Sat, 15 Oct 2022 20:24:29 +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: anlauf at gcc dot gnu.org 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=3D107272 Bug ID: 107272 Summary: ICE in gfc_compare_string and others (related to pr107217) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gcc dot gnu.org Target Milestone: --- The following variation of testcase gfortran.dg/pr107217.f90 ICEs due to yet unhandled non-numeric types: program p print *, 2 <=3D [real :: (['1'])] ! { dg-error "Cannot convert" } print *, [real :: (['1'])] >=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] > 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] =3D=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] /=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] <=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] < 2 ! { dg-error "Cannot convert" } print *, 2 <=3D [real :: (['1'])] ! { dg-error "Cannot convert" } print *, [real :: (['1'])] >=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] > 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] =3D=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] /=3D 2 ! { dg-error "Cannot convert" } print *, [real :: (['1'])] <=3D 2 ! { dg-error "Cannot convert" } print *, [logical :: (['1'])] .and. .true. ! { dg-error "Cannot convert"= } print *, [logical :: (['1'])] .or. .true. ! { dg-error "Cannot convert"= } print *, [logical :: (['1'])] .eqv. .true. ! { dg-error "Cannot convert"= } print *, [logical :: (['1'])] .neqv. .true. ! { dg-error "Cannot convert"= } end The fix is a straightforward extension of the fix for pr107217.=