Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

clang 7.0.0

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

Author

anonymous

about 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-7.0.0/include -std=gnu++2a
prog.cc:3:28: error: a space is required between a right angle bracket and an equals sign (use '> =')
void f2(std::shared_ptr<int>=0);
                           ^~
                           > =
prog.cc:4:11: error: expected ')'
void f(int*=0);
          ^
prog.cc:4:7: note: to match this '('
void f(int*=0);
      ^
prog.cc:9:6: error: C++11 only allows consecutive left square brackets when introducing an attribute
    a[[]{return 0;}()];
     ^
prog.cc:9:22: warning: expression result unused [-Wunused-value]
    a[[]{return 0;}()];
    ~ ~~~~~~~~~~~~~~~^
1 warning and 3 errors generated.
Exit Code:
1