Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 65acf43270ea2894dffa0d0b292b92402f80c8cb) (https://github.com/llvm-mirror/llvm.git 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824)

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

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-head/include -std=gnu++2a
prog.cc:23:16: error: static_assert expression is not an integral constant expression
        static_assert(typeA1 == typeA2);
                      ^~~~~~~~~~~~~~~~
prog.cc:23:23: note: non-constexpr function 'operator==' cannot be used in a constant expression
        static_assert(typeA1 == typeA2);
                             ^
/opt/wandbox/clang-head/include/c++/v1/typeinfo:305:10: note: declared here
    bool operator==(const type_info& __arg) const _NOEXCEPT
         ^
1 error generated.
Exit Code:
1