Skip to content

Error when formatting _BitInt #4007

Closed
Closed
@canhld94

Description

It's good in version 9.1.0 (https://godbolt.org/z/e5rzjxbEb), but starts failing since v10 (https://godbolt.org/z/fEdsc75rb):

/opt/compiler-explorer/libs/fmt/10.2.1/include/fmt/core.h:1828:39: error: constexpr variable 'desc' must be initialized by a constant expression
 1828 |   static constexpr unsigned long long desc =
      |                                       ^
 1829 |       (is_packed ? detail::encode_types<Context, Args...>()
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1830 |                  : detail::is_unpacked_bit | num_args) |
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1831 |       (num_named_args != 0
      |       ~~~~~~~~~~~~~~~~~~~~
 1832 |            ? static_cast<unsigned long long>(detail::has_named_args_bit)
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1833 |            : 0);

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions