Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

Compiler

Options

Author

anonymous

about 7 years ago

a.h

$
prog.cc: In function 'int main(int, char**)':
prog.cc:22:19: error: the type 'const A' of 'constexpr' variable 'a' is not literal
     { constexpr A a; }
                   ^
prog.cc:11:8: note: 'A' is not literal because:
 struct A {
        ^
prog.cc:11:8: note:   'A' has a non-trivial destructor
prog.cc:21:14: warning: unused parameter 'argc' [-Wunused-parameter]
 int main(int argc, char** argv) {
          ~~~~^~~~
prog.cc:21:27: warning: unused parameter 'argv' [-Wunused-parameter]
 int main(int argc, char** argv) {
                    ~~~~~~~^~~~
Exit Code:
1