tinyformat
tinyformat copied to clipboard
Different output for earlier compilers
The following code will print different output on different compilers:
enum Number : uint8_t {
FOO = 111,
};
int main(){
std::cout << tinyformat::format("%s", Number::FOO) << std::endl;
}
gcc 9 (and earlier): 111
gcc 10 (and later): o
clang 9 (and earlier): 111
gcc 10 (and later): o
Probably a compiler bug, so feel free to close.