- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
! Minimal reproducer for the ifx 2026.1 TOKENIZE intrinsic
program repro_tokenize_ifx
implicit none
character(len=:), dimension(:), allocatable :: t
print*, 'version',__INTEL_COMPILER_BUILD_DATE
call flush(6)
call tokenize("aaa bbb ccc", " ", t)
print*, size(t), len(t(1)), trim(t(2))
end program repro_tokenize_ifxleads to
version 20260617
forrtl: severe (408): fort: (8): Attempt to fetch from allocatable variable T when it is not allocated
Image PC Routine Line Source
repro_tokenize_if 0000000000405362 Unknown Unknown Unknown
repro_tokenize_if 000000000040527D Unknown Unknown Unknown
libc.so.6 000006CF4402A1CA Unknown Unknown Unknown
libc.so.6 000006CF4402A28B __libc_start_main Unknown Unknown
repro_tokenize_if 0000000000405165 Unknown Unknown Unknownwhen compiled with
ifx -fpp -check pointers repro_tokenize_ifx.f90
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FWIW the segfault does not occur with ifx 2025.3.2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can reproduce this error with ifx 2026.1.1.
It occurs due to the compiler option (on Windows):
/check:pointersWithout this flag the code runs correctly.
So yes probably a compiler bug here.
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