8000 Different output for earlier compilers · Issue #82 · c42f/tinyformat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Different output for earlier compilers #82

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

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
0