Open awilfox opened 1 year ago
Changing the test only fixes the test itself, and not comparisons done when using grantlee in some other application/library.
I submitted #91 for this.
Thanks. I figured this would need to be called somewhere, but wasn't sure the best place for it.
3b1931e30a23 added
operator<
toMetaEnumVariable
. However, contrary to the commit message, no call toQMetaType::registerComparators
is made.In Qt 6, this works because it uses introspection to determine if
operator<
is implemented in the class. However, in Qt 5 the call must be explicit.Oddly, it seems to work on most platforms anyway, somehow… except 64-bit PowerPC. On this platform, using Qt 5.15 + KDE Patch Collection, and GCC 8.5.0, with
-O2
, or-O0 -fstack-protector -fschedule-insns -fmove-loop-invariants -finline-functions-called-once -fguess-branch-probability
(minimum optimisation flags needed to trigger):Adding a call to
registerComparators
intestbuiltins
makes it pass: