Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different output for earlier compilers #82

Open
maflcko opened this issue Sep 3, 2021 · 1 comment
Open

Different output for earlier compilers #82

maflcko opened this issue Sep 3, 2021 · 1 comment

Comments

@maflcko
Copy link

maflcko commented Sep 3, 2021

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
Copy link
Author

maflcko commented Sep 3, 2021

Probably a compiler bug, so feel free to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant