Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compiler bug wrt C_F_STRPOINTER

Robert_van_Amerongen
New Contributor III
650 Views

Again, there is a problem with this function:

 

C_F_STRPOINTER(CSTRPTR, FSTRPONTER, [NCHARS])

 

If I call it with nchars = 0, then I get a message:

 

ERROR: NCHARS is less than or equal to zero. [C_F_STRPOINTER]

 

To my opinion this not correct: the standard section 18.2.3.5 specifies: "NCHARS (optional) shall be an integer value with a nonnegative value". A value 0 thus is not excluded. 

 

I have added a small example. I try to get the command line in a WinMain function 

 

Robert

0 Kudos
1 Solution
taehunkim
Employee
541 Views

Hi,

Thank you for your question.

​This issue has already been reported and will be resolved at next version (2025.0).

 

Thanks.

View solution in original post

2 Replies
taehunkim
Employee
542 Views

Hi,

Thank you for your question.

​This issue has already been reported and will be resolved at next version (2025.0).

 

Thanks.

Robert_van_Amerongen
New Contributor III
482 Views
0 Kudos
Reply