[Bug tree-optimization/94566] conversion between std::strong_ordering and int
oschonrock at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 14 17:15:18 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94566
--- Comment #10 from Oliver Schönrock <oschonrock at gmail dot com> ---
I agree the switch optimisation is better, but...
shouldn't std::bit_cast prevent incorrect casting with different underlying
implementaion? (ie if the size doesn't match, and the size could be deduced
with TMP)
and "unordered value" doesn't apply to std::strong_ordering?
More information about the Gcc-bugs
mailing list