https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59389

--- Comment #9 from Sergey Fedorov <vital.had at gmail dot com> ---
(In reply to Andrew Pinski from comment #7)
> (In reply to Sergey Fedorov from comment #6)
> > I am getting a similar-looking error with gcc-13.2.0 now:
> > https://github.com/NGSolve/ngsolve/issues/68
> 
> Both clang and GCC reject the original testcase still ....
> So I doubt this is the same issue ...

May also be unrelated, but in case:
https://github.com/kcat/openal-soft/issues/1078

In file included from
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:42:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:
In function 'UInt32 {anonymous}::GetDeviceChannelCount(AudioDeviceID, bool)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:206:30:
error: call of overloaded 'FourCCPrinter(<brace-enclosed initializer list>)' is
ambiguous
  206 |             FourCCPrinter{err}.c_str(), err);
      |                              ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/core/logging.h:34:44:
note: in definition of macro 'ERR'
   34 | #define ERR(...) al_print(LogLevel::Error, __VA_ARGS__)
      |                                            ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:107:15:
note: candidate: 'constexpr {anonymous}::FourCCPrinter::FourCCPrinter(int)'
  107 |     constexpr FourCCPrinter(int code) noexcept :
FourCCPrinter{static_cast<UInt32>(code)} { }
      |               ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:93:15:
note: candidate: 'constexpr {anonymous}::FourCCPrinter::FourCCPrinter(UInt32)'
   93 |     constexpr FourCCPrinter(UInt32 code) noexcept
      |               ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:90:8:
note: candidate: 'constexpr {anonymous}::FourCCPrinter::FourCCPrinter(const
{anonymous}::FourCCPrinter&)'
   90 | struct FourCCPrinter {
      |        ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:90:8:
note: candidate: 'constexpr
{anonymous}::FourCCPrinter::FourCCPrinter({anonymous}::FourCCPrinter&&)'
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:218:30:
error: call of overloaded 'FourCCPrinter(<brace-enclosed initializer list>)' is
ambiguous
  218 |             FourCCPrinter{err}.c_str(), err);
      |                              ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/core/logging.h:34:44:
note: in definition of macro 'ERR'
   34 | #define ERR(...) al_print(LogLevel::Error, __VA_ARGS__)
      |                                            ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:107:15:
note: candidate: 'constexpr {anonymous}::FourCCPrinter::FourCCPrinter(int)'
  107 |     constexpr FourCCPrinter(int code) noexcept :
FourCCPrinter{static_cast<UInt32>(code)} { }
      |               ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:93:15:
note: candidate: 'constexpr {anonymous}::FourCCPrinter::FourCCPrinter(UInt32)'
   93 |     constexpr FourCCPrinter(UInt32 code) noexcept
      |               ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:90:8:
note: candidate: 'constexpr {anonymous}::FourCCPrinter::FourCCPrinter(const
{anonymous}::FourCCPrinter&)'
   90 | struct FourCCPrinter {
      |        ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:90:8:
note: candidate: 'constexpr
{anonymous}::FourCCPrinter::FourCCPrinter({anonymous}::FourCCPrinter&&)'
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:
In function 'void {anonymous}::EnumerateDevices(std::vector<DeviceEntry>&,
bool)':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:231:13:
warning: format '%u' expects argument of type 'unsigned int', but argument 3
has type 'long int' [-Wformat=]
  231 |         ERR("Failed to get device list size: %u\n", err);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~
      |                                                     |
      |                                                     long int
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/core/logging.h:34:44:
note: in definition of macro 'ERR'
   34 | #define ERR(...) al_print(LogLevel::Error, __VA_ARGS__)
      |                                            ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_openal-soft/openal-soft/work/openal-soft-1.24.1/alc/backends/coreaudio.cpp:231:47:
note: format string is defined here
  231 |         ERR("Failed to get device list size: %u\n", err);
      |                                              ~^
      |                                               |
      |                                               unsigned int
      |                                              %lu

Reply via email to