tinyformat icon indicating copy to clipboard operation
tinyformat copied to clipboard

Different output for earlier compilers

Open maflcko opened this issue 4 years ago • 1 comments

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

maflcko avatar Sep 03 '21 15:09 maflcko

Probably a compiler bug, so feel free to close.

maflcko avatar Sep 03 '21 15:09 maflcko