public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/92960] ICE tree check: expected tree that contains 'decl minimal' structure, have 'component_ref' in add_decl_as_local, at fortran/trans-decl.c:261
[not found] <bug-92960-4@http.gcc.gnu.org/bugzilla/>
@ 2023-03-29 8:45 ` pault at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: pault at gcc dot gnu.org @ 2023-03-29 8:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92960
Paul Thomas <pault at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
Fixed on 12-branch and mainline. I will add the testcase below, when the
current patch for some of PR87477 is committed.
Thanks
Paul
! { dg-do-run }
!
! Contributed by Gerhard Steinmetz <gscfq@t-online.de>
!
program p
type t(n)
integer, len :: n
character(n) :: c
end type
type(t(:)), allocatable :: z
allocate (t(7) :: z)
z%c = "1234567"
associate (y => z%c)
if (y .ne. "1234567") stop 1
if (len (y) .ne. 7) stop 2
end associate
deallocate (z)
end
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-29 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-92960-4@http.gcc.gnu.org/bugzilla/>
2023-03-29 8:45 ` [Bug fortran/92960] ICE tree check: expected tree that contains 'decl minimal' structure, have 'component_ref' in add_decl_as_local, at fortran/trans-decl.c:261 pault at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).