From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C0C9C386F809; Fri, 10 May 2024 17:30:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0C9C386F809 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715362254; bh=Mo9HOLUI3AEEyy3QrH8/v+Y83K+KBX8qs1JbUP4X85M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Dk1b6SCFZjtau/QJJUU8Of6qdRDUg++DeIPYn5J+SlaOjiUcgyf70yrES0U7Oz8mC vblZpy/0uzn8FmMdnvuyrfqvlUztLxA/QUwRtYEjnCBNPAMcntwKsl7aihibmh7cb+ 0JxaWXXsmESkqqNuwGFzGNyY7Dmd0lfwDEVZRbR0= From: "oliverjahn at proton dot me" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102241] [PDT] ICE when declaring derived type with a parameterized derived type member Date: Fri, 10 May 2024 17:30:53 +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: 9.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: oliverjahn at proton dot me X-Bugzilla-Status: NEW 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: cc 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=3D102241 Oliver Jahn changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |oliverjahn at proton dot me --- Comment #4 from Oliver Jahn --- Same error with gfortran 14.1.0 on x86_64-pc-linux-gnu. Not sure it helps,= but I can get an error message instead of ICE if I use the pointer version of t= he t2 type in a module subroutine: MODULE mo TYPE t1(n) INTEGER, LEN :: n INTEGER :: a(n) END TYPE TYPE t2 TYPE(t1(1)), POINTER :: p_t1 END TYPE type(t1(1)), target :: t type(t2) :: pt CONTAINS SUBROUTINE SR pt%p_t1 =3D> t END SUBROUTINE END MODULE gives mo.f90:17:8: 17 | pt%p_t1 =3D> t | 1 Error: Different types in pointer assignment at (1); attempted assignment of TYPE(Pdtt1) to TYPE(t1) and the same with deferred type parameter in t2.=