Skip to content

Error when formatting _BitInt #4007

Description

@canhld94

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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