Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 8120cfedf55ade13a0a1a4a4629911aa2f8ed9c3)

Options
Warnings
Don't Use Boost
C++2a
-pedantic-errors

Author

anonymous

over 4 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++2a -pedantic-errors
prog.cc:13:5: error: call to 'f' is ambiguous
    f(0);
    ^
prog.cc:4:56: note: candidate function [with T = int]
template<typename T> requires (!(C1<T> && C2<T>)) void f(T);
                                                       ^
prog.cc:5:45: note: candidate function [with T = int]
template<typename T> requires (!C1<T>) void f(T);
                                            ^
1 error generated.
Exit Code:
1