Skip to content

enforce-check-test.cc: fails with GCC 12.2.0 (no problem with 12.1.0) #3050

Description

@vobloeb
In file included from /build/fetchgit/include/fmt/format.h:48,
                 from /build/fetchgit/include/fmt/chrono.h:21,
                 from /build/fetchgit/test/enforce-checks-test.cc:11:
/build/fetchgit/include/fmt/core.h: In instantiation of 'constexpr decltype (ctx.begin()) fmt::v9::detail::parse_format_specs(ParseContext&) [with T = std::vector<char>; ParseContext = compile_parse_context<char, error_handler>; decltype (ctx.begin()) = const char*]':
/build/fetchgit/include/fmt/core.h:2923:22:   required from 'constexpr fmt::v9::detail::format_string_checker<Char, ErrorHandler, Args>::format_string_checker(fmt::v9::basic_string_view<Char>, ErrorHandler) [with Char = char; ErrorHandler = fmt::v9::detail::error_handler; Args = {std::vector<char, std::allocator<char>
>}]'
/build/fetchgit/test/enforce-checks-test.cc:55:20:   required from here
/build/fetchgit/include/fmt/core.h:2713:12: error: use of deleted function 'fmt::v9::detail::fallback_formatter<T, Char, Enable>::fallback_formatter() [with T = std::vector<char>; Char = char; Enable = void]'
 2713 |   auto f = conditional_t<has_formatter<mapped_type, context>::value,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2714 |                          formatter<mapped_type, char_type>,
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2715 |                          fallback_formatter<stripped_type, char_type>>();
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/fetchgit/include/fmt/core.h:1105:3: note: declared here
 1105 |   fallback_formatter() = delete;
      |   ^~~~~~~~~~~~~~~~~~

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