Interesting that GCC only considers this a constant under optimization, but does not when no optimizations. Pretty weird behavior! Clang is consistent all the way. Probably just another reason why this should be mandated to be a constant expression in the standard... godbolt.org/z/eq1jWPoen
18 likes 0 replies
?