Skip to content

Fixed failures in openfhe-python tests linked with clang++-18#972

Merged
pascoec merged 1 commit intodevfrom
971-fix-test-failures-for-clang
Apr 28, 2025
Merged

Fixed failures in openfhe-python tests linked with clang++-18#972
pascoec merged 1 commit intodevfrom
971-fix-test-failures-for-clang

Conversation

@dsuponitskiy
Copy link
Collaborator

@dsuponitskiy dsuponitskiy commented Apr 25, 2025

dynamic_cast didn't work. only after removing "final" from ILDCRTParams, dynamic_cast started working.
this suggests that clang handles "final" differently in templates. most likely, it optimizes some things more aggressively, which affects RTTI and base class behavior (especially in templates).
NOTE: the test fails with the -O3 optimization flag, but passes with -O0 or when linked in Debug mode

@dsuponitskiy dsuponitskiy force-pushed the 971-fix-test-failures-for-clang branch from cc300d2 to 77387b2 Compare April 25, 2025 17:38
@pascoec pascoec merged commit c697883 into dev Apr 28, 2025
@pascoec pascoec deleted the 971-fix-test-failures-for-clang branch April 28, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix failures in openfhe-python test when the tests are linked with clang++-18

3 participants