-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Tests fail when compiling without GNU extensions #1725
Comments
Compiling tests in this configuration is not supported at the moment but a PR that makes it possible would be welcome. |
As it turned out |
I know this is closed, but FTR numeric_limits is not technically broken here. https://gcc.godbolt.org/z/vM5nPE Because if it WAS an arithmetic type, then std::maxint_t would have to expand to include it, and that would break ABI somewhere. |
You are right about ABI. |
Description
When compiling libfmt with gcc/clang with GNU extensions disabled,
format-test
fails while formatting__int128_t
values. It appears they are treated just asint
s.As
__int128_t
is a GNU extension, I don't expect it to work, but it should not be used/tested in this case. However, even with GNU extensions disabled,__int128_t
is defined and appears to work, but it is not formatted right. I did not find any obvious errors in the code - as far as I can tell, it should work, yet it doesn't.How to reproduce
Alternatively, this is reproducible on godbolt: https://godbolt.org/z/XGg8yy
The text was updated successfully, but these errors were encountered: