-
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
v8 regression when compiling with FMT_USE_USER_DEFINED_LITERALS=0 #2384
Comments
This probably will be fixed by #2376. |
May be some additional tests for these specific compilation environments are in order. |
fmt v8 currently contains a bug that causes compilation to fail if `FMT_USE_USER_DEFINED_LITERALS` is defined to 0. This is a regression from earlier versions. A bug has been filed against fmt: fmtlib/fmt#2384 MKVToolNix defined this to 0 as earlier fmt versions caused warnings in their code dealing with user-defined literals with `-Wpedantic`. Luckily those warnings do not occur with v8 anymore. The fix is to test in `configure` if the fmt version we're compiling with is v8 or older, and only to define `FMT_USE_USER_DEFINED_LITERALS` to 0 for earlier versions. Fixes #3151.
Fixed in #2376, thanks for reporting. |
Thanks for fixing this one so quickly in particular and all the work you've all done of this fantastic library in particular. Over the years my MKVToolNix has used the |
Thanks @zx2c4 for the actual fix =). |
The following small test program can be compiled just fine with e.g. 7.1.3, but it fails with 8.0.0:
Error message with 8.0.0 & gcc 11:
I've built without user-defined literals for years now because a) my program doesn't use them and b) there are a lot of warnings with
-Wpedantic
and user-defined literals activated (and I'm somewhat anal about warnings).The text was updated successfully, but these errors were encountered: