This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78033] Internal Compiler Error in enforce_single_undo_checkpoint
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Oct 2016 04:17:34 +0000
- Subject: [Bug fortran/78033] Internal Compiler Error in enforce_single_undo_checkpoint
- Auto-submitted: auto-generated
- References: <bug-78033-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78033
--- Comment #2 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #1)
> Reduced testcase.
>
> function f(n, x)
> integer, intent(in) :: n
> complex, intent(in) :: x(1:n)
> real :: f
> f = g([real(x(1:n)), aimag(x(1:n))])
> end function f
>
> If the array sections are removed in favor of the whole array,
> the code compiles.
Even further reduction.
subroutine f(n, x)
integer, intent(in) :: n
complex, intent(in) :: x(1:n)
real :: y(2*n)
y = [real(x(1:n), aimag(x(1:n))]
end subroutine f
The constructor with array sections is going south.