public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/106410] New: Internal compiler error: with nested parametrized types
@ 2022-07-22 12:11 s.lopez at brgm dot fr
  2022-07-22 16:44 ` [Bug fortran/106410] " kargl at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: s.lopez at brgm dot fr @ 2022-07-22 12:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106410

            Bug ID: 106410
           Summary: Internal compiler error: with nested parametrized
                    types
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: s.lopez at brgm dot fr
  Target Milestone: ---

Compiling the following code :

```
module M

   type A(n)
      integer, len :: n
      real :: a(n)
   end type

   type B(n)
      integer, len :: n
      type(A(n)) :: as
   end type

contains

! subroutine f(a, b)
!    type(A(*)), intent(in) :: a
!    type(B(a%n)), intent(out) :: b
! end subroutine

subroutine g(b)
   type(B(*)), intent(in) :: b
end subroutine

end module
```

generates an internal compiler error, whereas uncommenting the commented lines
works fine.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-22 19:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22 12:11 [Bug fortran/106410] New: Internal compiler error: with nested parametrized types s.lopez at brgm dot fr
2022-07-22 16:44 ` [Bug fortran/106410] " kargl at gcc dot gnu.org
2022-07-22 17:24 ` anlauf at gcc dot gnu.org
2022-07-22 19:00 ` kargl 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).