Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

???

Language

C++

Compiler

clang HEAD 19.0.0git (https://github.com/llvm/llvm-project.git b828c13f3ceb336bf517fab0223b966ccace100e)

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic
Raw compiler options
-std=c++26

???

$ clang++ prog.cc -Wall -Wextra -std=c++26
prog.cc:34:15: error: call to 'g' is ambiguous
   34 | static_assert(g(23) == 2);
      |               ^
prog.cc:23:16: note: candidate function [with Ts = <int>]
   23 | constexpr auto g(Ts...) {
      |                ^
prog.cc:29:16: note: candidate function [with Ts = <int>]
   29 | constexpr auto g(Ts...) {
      |                ^
1 error generated.
Exit Code:
1