From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3D61F3858C62; Mon, 28 Nov 2022 20:43:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D61F3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669668214; bh=jYNowMGGyUuSSL+lnwMl0gc6YfoOYkFo6peJ2jzrHGs=; h=From:To:Subject:Date:From; b=DZTEEKQbGLUB3ECyiiO5hFa1Xq27p6oYg1kXZMuZcr9Euk8CYkvZBLznSGgfk7cGM nvl/26pmmYHQYhrpsMMVOV6GB1ns71osTD2DQAw4is3YXg5Njaxv/nvfSY9hnGqURU tvzOYazexmKDtRr2520xXsk1aXUymQa7TyAwzwKI= From: "kaiserkarl31 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107900] New: Select type with intrinsic type inside associate causes ICE / Segmenation fault Date: Mon, 28 Nov 2022 20:43:33 +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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kaiserkarl31 at yahoo dot com 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=3D107900 Bug ID: 107900 Summary: Select type with intrinsic type inside associate causes ICE / Segmenation fault Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kaiserkarl31 at yahoo dot com Target Milestone: --- Using a polymorphic derived type element in a select type statement is not allowed, but placing it in an associate block causes an internal compiler e= rror if one of the "type is" statements includes an intrinsic type. The following program is enough to reproduce it in GFortran 12.2.1: program test class(*), pointer :: ptr associate (c =3D> ptr) select type (c) type is (integer) print *, 'integer' end select end associate end program test Note that the above program wouldn't run, as "ptr" isn't associated with anything, but it shouldn't generate an ICE either.=