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

ifx 2022.2.1 bug: fails on string merge

vanderwb
Beginner
175 Views

The new ifx version (2022.2.1) has a regression compared to previous versions. Consider the following simple example, which replicates an operation performed in a more complex code:

integer :: i
character(2) :: string
string = "ab"

do i=1, len(string)
string(i:i) = merge(string(i:i), 'c', string(i:i) /= 'a')
end do

This merge compiles successfully using ifort and previous ifx versions. But with the 2022.2.1 version of ifx, we get the following error:

/glade/u/apps/common/22.12/spack/opt/spack/intel-oneapi-compilers/2022.2.1/compiler/2022.2.1/linux/bin-llvm/xfortcom[0xeeba29]

test.f90(10): error #5533: Feature found on this line is not yet supported in ifx
string(i:i) = merge(string(i:i), 'c', string(i:i) /= 'a')
----------------------^
compilation aborted for test.f90 (code 3)

Please let me know if you need more information.

 

Regards,

Brian

0 Kudos
1 Solution
Barbara_P_Intel
Moderator
85 Views

I reproduced the error with the current ifx compiler,  Intel(R) Fortran 22.0-1775.03. But with the version of ifx that will be available soon I don't get that error. 

Watch for an announcement for when that release will be available.

 

 

View solution in original post

2 Replies
Barbara_P_Intel
Moderator
86 Views

I reproduced the error with the current ifx compiler,  Intel(R) Fortran 22.0-1775.03. But with the version of ifx that will be available soon I don't get that error. 

Watch for an announcement for when that release will be available.

 

 

vanderwb
Beginner
79 Views

Thanks Barbara - that's good news. We will watch for it.

Reply