Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28496 Discussions

Internal compiler error of ifx 2023.1.0

V-T
New Contributor I
1,156 Views

Consider the following minimal working example:

module lib
contains
    subroutine f()
        integer::a(1)
        a=g([42])
    contains
        function g(x)
            integer::x(:),y(SIZE(x)),g(SIZE(y))  ! compiler error
            ! but replacing SIZE(y) with SIZE(x) fixes the problem
            g=x
        end
    end
end

program prog
    use lib
end

Compilation of this code with (ifx 2023.1.0) fails with `error #5623: **Internal compiler error: internal abort**`. However, replacing `SIZE(y)` with `SIZE(x)` fixes the problem. This only happens if the function is inside a procedure.

Labels (1)
1 Solution
Barbara_P_Intel
Moderator
479 Views

@V-T, the internal compiler error (ICE) that you reported is gone in the latest release of ifx. This release was made available earlier this week.

Check it out!

 

View solution in original post

0 Kudos
2 Replies
Barbara_P_Intel
Moderator
1,109 Views

Thank you for reporting this ICE with such a small reproducer. Good to see you have a reasonable workaround.

I filed a bug report, CMPLRLLVM-48784. Will let you know when it's fixed.


0 Kudos
Barbara_P_Intel
Moderator
480 Views

@V-T, the internal compiler error (ICE) that you reported is gone in the latest release of ifx. This release was made available earlier this week.

Check it out!

 

0 Kudos
Reply