https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70834
--- Comment #2 from Matt Godbolt <matt at godbolt dot org> --- if constexpr is of course the right solution here, for certain. I appreciate the compiler determining which if() branch to take in the non-constexpr case is tricky.