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

Pass by value of a c_ptr scalar with bind(c) and /standard-semantics results in passing a reference !

Andrew_Smith
Valued Contributor I
429 Views

This behavior is new in IVF 14.0.  The code passed by value properly in 13.0.

I can send a reproducer privately

0 Kudos
2 Replies
Steven_L_Intel1
Employee
429 Views

I can reproduce this, and am a bit surprised. I thought it worked properly with /standard-semantics but it seems not. See http://software.intel.com/en-us/forums/topic/486293 for some background on this, I will let the developers know about this additional combination. Our issue ID is DPD200249357.

0 Kudos
Steven_L_Intel1
Employee
429 Views

I expect this to be fixed in Update 2. due late January or early February.

0 Kudos
Reply