- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CO_SUM does not return STAT = 0 when its execution is successful - it simply preserves whatever value STAT had prior to its call!
You can see this by commenting/uncommenting line 7 in the code below.
The code was compiled with IFX2025.1.0.
PROGRAM P
IMPLICIT NONE
INTEGER :: S, STAT
CHARACTER(LEN = 20) :: MESSAGE
!STAT = 0
S = THIS_IMAGE()
CALL CO_SUM(S, STAT = STAT, ERRMSG = MESSAGE)
IF (STAT /= 0) THEN
WRITE(*, *) S, THIS_IMAGE(), STAT, MESSAGE
END IF
END
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We found an error and started triaging it with development team.
Thanks.

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