- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It appears oneAPI 2023.0.0 added a new `-check bounds` `-CB` feature: it now appears to detect the undefined case:
real, allocatable :: A(:)
allocate(A(2))
A(:) = [1,2,3]
previously, A would silently truncate to [1,2]. Now with bounds-checking, this generates a run-time error, which is more desireable.
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