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

REFERENCE Attribute for IFX Compiler

_Moji
Beginner
755 Views

This code can be compiled by IFORT, but I recieve a compiler error for IFX:

 

Subroutine TestDLL (Text)
   !DEC$ ATTRIBUTES DLLEXPORT :: TestDLL
   !DEC$ ATTRIBUTES REFERENCE :: Text
   Implicit None
   Character (len=*) :: Text
   Character (LEN=1) :: Test = 'A'

   Test = Text
   Text = 'B'
END

 

I should also mention that I need to use the /iface:mixed_str_len_arg option for the compilation, i.e.:

 

ifx /iface:mixed_str_len_arg /c testdll.f90

 

 Version of IFX compiler: (2023.2.0) 

4 Replies
Barbara_P_Intel
Employee
699 Views

Thank you for reporting this with a simple reproducer. I filed a bug report, CMPLRLLVM-53658. I'll let you know when it's fixed.



0 Kudos
Barbara_P_Intel
Employee
645 Views

Good news! This is already fixed and should be available in ifx 2024.1 in a few months.



0 Kudos
_Moji
Beginner
608 Views

Great. Thank you so much!

0 Kudos
Barbara_P_Intel
Employee
304 Views

The ICE you reported is fixed in ifx 2024.1.0 that was released last week. Please give it a try.



0 Kudos
Reply