Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

ifx ice on intent(out), allocatable dummy of type with default initializer, allocatable char comp

IanH
Honored Contributor III
746 Views

Given:

MODULE SomeModule
  IMPLICIT NONE
  
  TYPE :: SomeType
    INTEGER :: code = 0
    CHARACTER(:), ALLOCATABLE :: msg
  END TYPE SomeType
END MODULE SomeModule

RECURSIVE SUBROUTINE CrashIFX(ouch)
  USE SomeModule
  IMPLICIT NONE
  
  TYPE(SomeType), INTENT(OUT), ALLOCATABLE :: ouch(:)
END SUBROUTINE CrashIFX

current ifx curls up in the corner and cries with:

>ifx /c "2023-04-06 ifx-ice.f90"
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2023.1.0 Build 20230320
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.

 #0 0x00007ff63781075a (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x30075a)
 #1 0x00007ff63781072a (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x30072a)
 #2 0x00007ff63770c348 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x1fc348)
 #3 0x00007ff63782cd3f (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x31cd3f)
 #4 0x00007ff63782be44 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x31be44)
 #5 0x00007ff63782d848 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x31d848)
 #6 0x00007ff637828cbd (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x318cbd)
 #7 0x00007ff63782958d (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x31958d)
 #8 0x00007ff6378c35f3 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x3b35f3)
 #9 0x00007ff6378c0510 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x3b0510)
#10 0x00007ff6378c101f (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x3b101f)
#11 0x00007ff6378c5116 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x3b5116)
#12 0x00007ff63784c810 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x33c810)
#13 0x00007ff637777df8 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x267df8)
#14 0x00007ff6377774b3 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x2674b3)
#15 0x00007ff637771623 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x261623)
#16 0x00007ff63776e3e3 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x25e3e3)
#17 0x00007ff63777c0b6 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x26c0b6)
#18 0x00007ff6377cda16 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x2bda16)
#19 0x00007ff6377d4293 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x2c4293)
#20 0x00007ff6377d1ff2 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x2c1ff2)
#21 0x00007ff6377d0e8b (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x2c0e8b)
#22 0x00007ff6376df8c8 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x1cf8c8)
#23 0x00007ff6376df34a (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x1cf34a)
#24 0x00007ff6378cc31e (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x3bc31e)
#25 0x00007ff639d36060 (C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm\xfortcom.exe+0x2826060)
#26 0x00007ffd6ed57614 (C:\WINDOWS\System32\KERNEL32.DLL+0x17614)
#27 0x00007ffd6fa426a1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x526a1)

2023-04-06 ifx-ice.f90(10): 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.
RECURSIVE SUBROUTINE CrashIFX(ouch)
------------------------------^
compilation aborted for 2023-04-06 ifx-ice.f90 (code 3)
3 Replies
Ron_Green
Moderator
710 Views

And ifx is crying over the allocatable character declaration.  I'll write up a bug report and check for other similar bugs.  Thanks @IanH 

ron

0 Kudos
Ron_Green
Moderator
688 Views

bug ID CMPLRLLVM-46593


0 Kudos
Ron_Green
Moderator
523 Views

This bug is fixed in the 2024.0 release.


0 Kudos
Reply