Skip to content

Head does not compile in MSVC 16.10.1 with /std:c++latest /Zc:__cplusplus #2351

Description

@Spammed

MSVC 16.10.1 fails to compile current head with /std:c++latest /Zc:__cplusplus (-> #define __cplusplus 201705L)
but fails not with /std:c++latest /Zc:__cplusplus- (-> #define __cplusplus 199711L).

Code sample see: https://godbolt.org/z/e7zehe6fG

Compilation fails with message

format.h(899,29): error C3615: constexpr function 'fmt::v7::detail::count_digits' cannot result in a constant expression
format.h(904,35): message : failure was caused by variable declaration with non-automatic storage

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions