Skip to content

ambiguous overload of count_digits() on xtensa esp32s3 gcc 12.2.0 (20230208) #4109

@m-mcgowan

Description

@m-mcgowan

godbolt repro

In file included from /opt/compiler-explorer/libs/fmt/trunk/include/fmt/core.h:5,
                 from <source>:1:
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h: In function 'constexpr OutputIt fmt::v11::detail::write_exponent(int, OutputIt)':
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1608:56: error: call of overloaded 'count_digits(unsigned int&)' is ambiguous
 1608 |     return format_decimal<Char>(out, uexp, count_digits(uexp));
      |                                            ~~~~~~~~~~~~^~~~~~
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1183:29: note: candidate: 'int fmt::v11::detail::count_digits(uint64_t)'
 1183 | FMT_CONSTEXPR20 inline auto count_digits(uint64_t n) -> int {
      |                             ^~~~~~~~~~~~
/opt/compiler-explorer/libs/fmt/trunk/include/fmt/format.h:1233:29: note: candidate: 'int fmt::v11::detail::count_digits(uint32_t)'
 1233 | FMT_CONSTEXPR20 inline auto count_digits(uint32_t n) -> int {
      |                             ^~~~~~~~~~~~
Compiler returned: 1

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