Conversation
GCC6 appears to need the explicit return type there. Otherwise, it fails with: > error: use of 'fmt::v9::detail::count_digits(UInt)::<lambda(UInt)> [with int BITS = 4; UInt = long long unsigned int]' before deduction of 'auto'
|
Could you provide a godbolt repro? |
|
Do you have a godbolt template with libfmt that I can use? |
|
Note that I encountered this using a somewhat esoteric fork of GCC (Amiga GCC). |
|
You could use this as a starting point: https://godbolt.org/z/b4TEMh5s4. |
|
There does not appear to be any version of GCC 6.5.x on godbolt |
|
Note that the error happens during compilation of fmt itself |
|
Godbolt: https://godbolt.org/z/8Wx1PxPss I think the issue is simply a symptom of #3341. It is not reproducible on master, where #3341 is fixed by #3066. It only results in a much shorter error message when #3341 is present. Please close the PR if that doesn't seem worth it. |
|
Closing then but thanks for investigation. |
|
Could you provide a godbolt repro? I wasn't able to reproduce the issue in https://godbolt.org/z/bbs165G9f. |
|
Sure: https://godbolt.org/z/9c8c895Wo. Important bit is |
|
Looks like a gcc 6 bug. Worked around in 84e6661. |
|
Hi @vitaut, gabime/spdlog#3050 I tested the release version with different gccs on spdn. It is as in the attachment. If I have free time, I will try master branch version. I would like to help you resolve this error. |
|
@KaganCanSit if it happens on master please open a separate issue and provide a self-contained repro. |
|
Hello @vitaut, GCC Versions: When I compiled the spdlog by updating the header files in the spdlog, I received an error. Looks like a little more time is needed here. A cleaner operation may occur after Fmt is released and spdlog implements this version. I wanted to give information. See you later. |
|
Hello again @vitaut, After deciding on this situation, it may be necessary to change the following statement in the documentation. "The library is highly portable and requires only a minimal subset of C++11 features which are available in GCC 4.8, Clang 3.4, MSVC 19.0 (2015) and later. Newer compiler and standard library features are used if available, and enable additional functionality." I would like to help with this issue. |
|
The docs have already been updated:
|
|
@vitaut Ohh, I missed it. I'm focusing on the readme and repository URL. The link to "https://fmt.dev/11.0/" is out of date. It might be confusing since the same thing exists in version 11.0. Maybe we update this partitions. |
|
We don't retroactively changed published docs. |



GCC6 appears to need the explicit return type there.
Otherwise, it fails with:
Fixes #3339