Pinned topicAssigning variable with value obtained from a library value does

‏2012-09-25T19:16:59Z
|Tags:

Answered question
This question has been answered.

Unanswered question
This question has not been answered yet.

Howdy,
I'm facing some trouble with a simple testcase of a program.
The idea is that a main process (binario.cpp) assigns the value of a foreign object's instance variable, defined by a library (libreria.h), in a global variable of that process.

We have been using this mechanism for a long time in our application and for our surprise, after upgrading xlc V7 to xlcV11, the default behaviour has changed.

I have made a small test program, which shows that a simple instruction such as assigning a variable in binario.cpp does not takes the expected value.
In this scenario, the l-value is the global variable COD and the r-value is the de value of the class variable CObjeto::COD.

Our AIX version is 7.1 and our compiler version is xlc V11 (IBM XL C/C++ for AIX, V11.1 (5724-X13)).

¿Do you know any limitations in xlC v11 about accessing remote values, while assigning a global variable?
I believe this is a bug in the xlc, or the xlC's installation.
Thanks and kind regards!

Howdy,
I'm facing some trouble with a simple testcase of a program.
The idea is that a main process (binario.cpp) assigns the value of a foreign object's instance variable, defined by a library (libreria.h), in a global variable of that process.

We have been using this mechanism for a long time in our application and for our surprise, after upgrading xlc V7 to xlcV11, the default behaviour has changed.

I have made a small test program, which shows that a simple instruction such as assigning a variable in binario.cpp does not takes the expected value.
In this scenario, the l-value is the global variable COD and the r-value is the de value of the class variable CObjeto::COD.

Our AIX version is 7.1 and our compiler version is xlc V11 (IBM XL C/C++ for AIX, V11.1 (5724-X13)).

¿Do you know any limitations in xlC v11 about accessing remote values, while assigning a global variable?
I believe this is a bug in the xlc, or the xlC's installation.
Thanks and kind regards!