- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page