Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang 11.1.0

Options
Warnings
Don't Use Boost
C++17
-pedantic-errors

Author

anonymous

over 4 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++17 -pedantic-errors
prog.cc:6:5: error: call to implicitly-deleted default constructor of 'A'
  A a;
    ^
prog.cc:2:13: note: default constructor of 'A' is implicitly deleted because field 'test_' of const-qualified type 'const int' would not be initialized
  const int test_;
            ^
1 error generated.
Exit Code:
1