Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Diehl__Martin
Novice
128 Views

ICE for merge with strings

The following code (misuse of merge as a ternary operator) results in an ICE with ifort version 19.1.1.217 unless compiled with -O0

program test                                                                                        
                                                                                                    
  character(len=*), parameter :: str = 'abcde'                                                      
                                                                                                    
  print*, index(str,merge('a','d',str(4:4) == 'd'))                                                 
                                                                                                    
end program test
0 Kudos
0 Replies
Reply