Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Important Update: Community Platform Migration​. Learn more​>
29649 Discussions

Zero sized derived type array causes ICE

Shrublet
Novice
457 Views

The code below causes an Internal Compiler Error. The problem may be a compiler regression, see https://community.intel.com/t5/Intel-Fortran-Compiler/zero-sized-derived-type-array-constructor/m-p/1378487#M161033 from 2022 

ijb87_local@SCLT517LINUX:~/test$ cat t.f90
Program test

  Implicit None( Type, External )

  Type a_t
  End type a_t

  Type( a_t ), Dimension( : ), Allocatable :: t_arr

  Integer, Dimension( : ), Allocatable :: i_arr

  i_arr = [ Integer :: ]

  t_arr = [ a_t :: ]

End Program test
ijb87_local@SCLT517LINUX:~/test$ ifx --version
ifx (IFX) 2026.1.1 20260724
Copyright (C) 1985-2026 Intel Corporation. All rights reserved.

ijb87_local@SCLT517LINUX:~/test$ ifx t.f90
          #0 0x00006022807f7d54
          #1 0x0000602280860a07
          #2 0x000060228084b68a
          #3 0x00006022807a05f8
          #4 0x0000602280743a31
          #5 0x000060228073a84e
          #6 0x000060228083638b
          #7 0x000060228083717a
          #8 0x000060228073e025
          #9 0x00006022808a575e
         #10 0x00006022808afb71
         #11 0x00006022808b00ab
         #12 0x00006022808b2cf9
         #13 0x00006022808afb71
         #14 0x00006022808acf2e
         #15 0x00006022808afb71
         #16 0x0000602280735aad
         #17 0x000060228073546f
         #18 0x0000602280924d46
         #19 0x0000757a9d82a1ca
         #20 0x0000757a9d82a28b __libc_start_main + 139
         #21 0x000060228056d33e

t.f90(14): error #5623: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
  t_arr = [ a_t :: ]
------------^
compilation aborted for t.f90 (code 3)
ijb87_local@SCLT517LINUX:~/test$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.5 LTS
Release:	24.04
Codename:	noble
ijb87_local@SCLT517LINUX:~/test$ 

 

0 Kudos
1 Solution
Igor_V_Intel
Moderator
360 Views

I reproduced this compiler crash and reported to the team to fix it. Thank you for reporting it.

View solution in original post

0 Kudos
2 Replies
Igor_V_Intel
Moderator
361 Views

I reproduced this compiler crash and reported to the team to fix it. Thank you for reporting it.

0 Kudos
Shrublet
Novice
351 Views

Thanks!

 

0 Kudos
Reply