From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 86A6D3858D1E; Mon, 26 Jun 2023 22:28:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86A6D3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687818503; bh=Q0Lb28ieO4Gz0Nf13uFA7GxrU82wOn7deYwF+wgbkoc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lkv+KdXkGiuiIMJQ+eQzhlGzsaQWUR6jc4tJTyc6LBEy73wb5LTZiFPinYn419C5P 2ETU1bIUF9JMNjYGi/nAudmAdL1P6mS00NtKo71izSgQvouT9Qw2+OJtE/izfm+cIL //hv+IvzZBzDAYGexS1ey6D3uv0eTTXhqfiaia6Y= From: "gronki at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110421] internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.cc:1548 Date: Mon, 26 Jun 2023 22:28:23 +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: 13.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gronki at gmail 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110421 --- Comment #1 from Dominik Gronkiewicz --- Actually the minimal example can be cut down even further, to not introduce confusion: program main implicit none type :: typ1 end type type, extends(typ1) :: typ1a end type type :: typ2 class(typ1), allocatable :: t1 end type type(typ2) :: t2 ! works t2 =3D typ2(t1=3Dtyp1()) ! crash t2 =3D typ2(t1=3Dtyp1a()) end program=