Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20191210 (experimental)

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

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:23:23: error: non-constant condition for static assertion
   23 |  static_assert(typeA1 == typeA2);
      |                ~~~~~~~^~~~~~~~~
prog.cc:23:23: error: call to non-'constexpr' function 'bool std::type_info::operator==(const std::type_info&) const'
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.0/typeinfo:120:10: note: 'bool std::type_info::operator==(const std::type_info&) const' declared here
  120 |     bool operator==(const type_info& __arg) const _GLIBCXX_NOEXCEPT
      |          ^~~~~~~~
prog.cc:21:34: warning: unused variable 'typeB' [-Wunused-variable]
   21 |  constexpr std::type_info const& typeB = typeid(b);
      |                                  ^~~~~
Exit Code:
1