Public bug reported:
reported upstream as https://github.com/fmtlib/fmt/issues/4807 but the issue
was closed by the repo maintainers who said:
> Closing since this has already been fixed and we don't maintain Debian
> packages.
to summarize the issue:
building this minimal repro (clang 21, -std=c++20 or -std=gnu++20)
#include <fmt/format.h>
int main() {
auto s = fmt::format(FMT_STRING("{}"), 42);
}
results in the following error:
error: call to consteval function 'fmt::basic_format_string<char, const
char *, const char *&, int &>::basic_format_string<FMT_COMPILE_STRING,
0>' is not a constant expression
the fix happened in https://github.com/fmtlib/fmt/commit/6797f0c, which
was first released in 11.1.0
** Affects: fmtlib (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2156794
Title:
FMT_STRING: "call to consteval function is not a constant expression"
error (clang 21, c++20)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fmtlib/+bug/2156794/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs