-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Static Assert failure with intel-19 #2746
Comments
Note that this works:
|
This looks like a compiler bug. After several digging, the static assertion failure directly due to the inconsistency of the following code: https://godbolt.org/z/3W3zY7z1E fmt::detail::has_const_formatter<fmt::group_digits_view, Lines 701 to 715 in ecd6022
ICC complains about the first overload note: this candidate was rejected because there is a type mismatch after argument substitution |
This use the
This uses Lines 1428 to 1432 in ecd6022
While there's is a bug in the compiler, the lack of constness in the latter case makes it formattable. |
Is there an easy/involved workaround that I can use since fixing the intel compiler is not a possibility... |
Thanks @sunmy2019 for investigating the issue. |
I have a potential PR in progress -- but I am having problems with
Everything seems to work with this simple change except
I am definitely out of my league here and hoped that a simple "pattern matching" change without deep understanding would work, but it obviously isn't. I can wait for someone else to create a PR, or if you want me to continue, any input / direction would be appreciated. |
@gsjaardema |
@phprus
The removal from See https://github.com/gsjaardema/fmt/tree/remove-legacy-internal-api |
@gsjaardema Please check my branch with intel compiler. |
Your branch was an improvement. I am now getting a similar error in a different line of code:
Maybe there is a better way to get colored output to a specific stream or this is now invalid syntax... |
Line 1697 in Are you sure the correct fmt library files (branch https://github.com/phprus/fmt/tree/issue-2746) are being used? |
Sorry, my
Here is the diff:
Without those changes, it would be line 1693 of your file... |
I added disabling this check similar to MSVC: Please check the branch https://github.com/phprus/fmt/tree/issue-2746 again. And apply commit phprus@f441484 over current fmt master and check it. |
Yes, this seems to fix the issue on both the I did notice that when I build with the
The |
master with patch #f441484 raises this error too? |
Master with patch does not raise the error; only |
I created a PR #2758 from a commit phprus@f441484. It must solve the issue. But replacing |
Possibly similar issue: #2759 |
@gsjaardema, |
Closing since the workaround has landed (thanks, @phprus!) Feel free to reopen if this didn't help but note that the ostream error is unrelated and can be fixed by either defining |
Mark this... Finally, find this issue... Thank you .... |
It looks the same issue happened when I tried to build https://github.com/isl-org/Open3D . This PR #2758 does NOT work... |
Just got the same error when building
|
There seems to be an issue with the intel-19 c++ compiler and the use of
fmt::group_digits()
. A simple reproducer is below:I try to compile:
The intel compiler version is:
I am using fmt-8.1.0
The text was updated successfully, but these errors were encountered: