You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[flang] CHECK(array) failed in Folder::ApplyComponent when folding a component of a PARAMETER array of an extended type whose parent has an undefined component type #239945
module m
type :: t2
type(t1) :: x = t1()
end type
type, extends(t2) :: t
complex:: z
end type
type(t), parameter:: tz(*) = [t((3., 4.)), t((5., 6.))]
logical, parameter:: test_6 =all(tz%z%im == [4., 6.])
end module
Resulted in this output:
fatal internal error: CHECK(array) failed at /root/llvm-project/flang/lib/Evaluate/fold-implementation.h(343)
Details
The following code:
```fortran
module m
type :: t2
type(t1) :: x = t1()
end type
type, extends(t2) :: t
complex :: z
end type
type(t), parameter :: tz(*) = [t((3., 4.)), t((5., 6.))]
logical, parameter :: test_6 = all(tz%z%im == [4., 6.])
end module
```
Resulted in this output:
fatal internal error: CHECK(array) failed at /root/llvm-project/flang/lib/Evaluate/fold-implementation.h(343)
Activity
llvmorg-github-actions commentedon Nov 7, 2026
@llvm/issue-subscribers-flang-frontend
Author: Jiang Yuancheng (YuanchengJiang)
Details
The following code: ```fortran module m type :: t2 type(t1) :: x = t1() end type type, extends(t2) :: t complex :: z end type type(t), parameter :: tz(*) = [t((3., 4.)), t((5., 6.))] logical, parameter :: test_6 = all(tz%z%im == [4., 6.]) end module ```Resulted in this output:
Trunk reproducer (
-fsyntax-only): https://godbolt.org/z/ser58sKd8