Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190515 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic -pthread

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:25:6: warning: extra ';' [-Wpedantic]
   25 |     };
      |      ^
prog.cc: In constructor 'TASK7905::LoggerImpl::LoggerImpl(TASK7905::RecursiveMtx&)':
prog.cc:200:29: warning: 'TASK7905::LoggerImpl::m_pOutput' will be initialized after [-Wreorder]
  200 |         FILE*               m_pOutput;
      |                             ^~~~~~~~~
prog.cc:199:34: warning:   'TASK7905::RecursiveMtx& TASK7905::LoggerImpl::m_oRM' [-Wreorder]
  199 |         RecursiveMtx&            m_oRM;          // protects class variables
      |                                  ^~~~~
prog.cc:172:9: warning:   when initialized here [-Wreorder]
  172 |         LoggerImpl(RecursiveMtx& oRM)
      |         ^~~~~~~~~~
prog.cc: At global scope:
prog.cc:249:2: warning: extra ';' [-Wpedantic]
  249 | };
      |  ^
prog.cc:268:2: warning: extra ';' [-Wpedantic]
  268 | };
      |  ^
Signal:
Segmentation fault