-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attribute values do not persist on MS Windows #483
Comments
With a few print statements, it looks like an issue with multiple inheritance and virtual function.
The debug prints are inserted as follows:
And the output shows some possibly garbage value:
In contrast, setting Edit: The inheritance seems to be a classic diamond shape:
|
With some debug prints, the Ubuntu/gcc build takes a different run path from the Windows/MS BuildTools, which is quite baffling. I checked with a minimal example that MSBuild Tools does work fine for the diamond-shaped inheritance like above. Ubuntu/gcc:
Windows/MS BuildTools
Thus the print statements inside |
Update: partially fixed by making |
It seems that the virtual function table is messed up on Windows. The call to One more issue found and fixed was data member Needs closer inspection. |
Fixed in #485 |
On Windows it seems that when an object is created and its attributes are assigned values inside a function, the attribute values do not persist after returning from the function. Minimal working example:
Output:
The text was updated successfully, but these errors were encountered: