Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2a
-pedantic-errors
Raw compiler options
-fconstexpr-ops-limit=13417728

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic-errors -fconstexpr-ops-limit=13417728
prog.cc:7:61: error: invalid use of non-static member function 'int A::begin()'
    7 | static_assert(std::is_same<decltype(&A::begin), decltype(A::begin) A::*>::value, "");
      |                                                             ^~~~~
prog.cc:7:72: error: template argument 2 is invalid
    7 | static_assert(std::is_same<decltype(&A::begin), decltype(A::begin) A::*>::value, "");
      |                                                                        ^
Exit Code:
1