On 25/01/2019 16:46, Andreas Fink wrote:
17/162 Test #17: AssociatedObject .................................. Passed 0.00 sec Start 18: AssociatedObject_optimised 18/162 Test #18: AssociatedObject_optimised ........................***Exception: Other 0.00 sec Start 19: AssociatedObject_legacy 19/162 Test #19: AssociatedObject_legacy ........................... Passed 0.00 sec Start 20: AssociatedObject_legacy_optimised 20/162 Test #20: AssociatedObject_legacy_optimised .................***Exception: Other 0.00 secthis still fails with clang-8
This one seems to be a clang bug. Inserting a printf in the -dealloc method, it *is* being called and is storing the true value in the global, but clang is optimising this away. This bug doesn't appear in the FreeBSD packaged version of LLVM 8, so it's probably recent breakage. I'll try to put together a reduced test case.
Removing static from the declaration of deallocCalled fixes the test. David _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
