Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

clang HEAD 7.0.0 (https://github.com/llvm-mirror/clang.git 75f2c9d022595bcd81c2362397f5badf1839cbcf) (https://github.com/llvm-mirror/llvm.git af7b1832a03ab6486c42a40d21695b2c03b2d8a3)

Options
Warnings
Boost 1.67.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 7 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-head/include -std=gnu++2a
prog.cc:11:7: error: conditional expression is ambiguous; 'X' and 'Y' can be converted to several common types
    z ? X() : Y(); 
      ^ ~~~   ~~~
1 error generated.
Exit Code:
1