Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

almost 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b
prog.cc:17:17: error: ambiguous partial specializations of 'test_class<int>'
  static_assert(test_class<int>::value);
                ^
prog.cc:7:8: note: partial specialization matches [with T = int]
struct test_class<T, void> {
       ^
prog.cc:12:8: note: partial specialization matches [with T = int]
struct test_class<T, std::enable_if_t<std::is_same_v<T,T>>> {
       ^
1 error generated.
Exit Code:
1