Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190520 (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:2:23: error: stray '`' in program
    2 | Core was generated by `./otserv'.
      |                       ^
prog.cc:2:32: warning: missing terminating ' character
    2 | Core was generated by `./otserv'.
      |                                ^
prog.cc:2:32: error: missing terminating ' character
    2 | Core was generated by `./otserv'.
      |                                ^~
prog.cc:4:2: warning: style of line directive is a GCC extension
    4 | #0  0x00007faf80a55609 in __dynamic_cast ()
      |  ^
prog.cc:4:5: error: "0x00007faf80a55609" is not a valid filename
    4 | #0  0x00007faf80a55609 in __dynamic_cast ()
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:7:2: warning: style of line directive is a GCC extension
    7 | #0  0x00007faf80a55609 in __dynamic_cast ()
      |  ^
prog.cc:7:5: error: "0x00007faf80a55609" is not a valid filename
    7 | #0  0x00007faf80a55609 in __dynamic_cast ()
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:10:2: warning: style of line directive is a GCC extension
   10 | #1  0x000000000045a6b4 in GameState::onAttack (this=this@entry=0x7faf7e32a980,
      |  ^
prog.cc:10:5: error: "0x000000000045a6b4" is not a valid filename
   10 | #1  0x000000000045a6b4 in GameState::onAttack (this=this@entry=0x7faf7e32a980,
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:11:22: error: stray '@' in program
   11 |     attacker=attacker@entry=0x7faee4004f40, pos=..., me=me@entry=
      |                      ^
prog.cc:11:59: error: stray '@' in program
   11 |     attacker=attacker@entry=0x7faee4004f40, pos=..., me=me@entry=
      |                                                           ^
prog.cc:27:2: warning: style of line directive is a GCC extension
   27 | #2  0x000000000045bd6e in Game::creatureMakeMagic (
      |  ^
prog.cc:27:5: error: "0x000000000045bd6e" is not a valid filename
   27 | #2  0x000000000045bd6e in Game::creatureMakeMagic (
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:28:14: error: stray '@' in program
   28 |     this=this@entry=0x74dc80 <g_game>, creature=creature@entry=0x7faee4004f40,
      |              ^
prog.cc:28:57: error: stray '@' in program
   28 |     this=this@entry=0x74dc80 <g_game>, creature=creature@entry=0x7faee4004f40,
      |                                                         ^
prog.cc:29:25: error: stray '@' in program
   29 |     centerpos=..., me=me@entry=0x7faf7e32ac20) at game.cpp:4797
      |                         ^
prog.cc:66:2: warning: style of line directive is a GCC extension
   66 | #3  0x000000000045ca2e in Game::creatureThrowRune (this=0x74dc80 <g_game>,
      |  ^
prog.cc:66:5: error: "0x000000000045ca2e" is not a valid filename
   66 | #3  0x000000000045ca2e in Game::creatureThrowRune (this=0x74dc80 <g_game>,
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:74:2: warning: style of line directive is a GCC extension
   74 | #4  0x000000000045ce2b in Game::burstArrow (this=0x7b00000007,
      |  ^
prog.cc:74:5: error: "0x000000000045ce2b" is not a valid filename
   74 | #4  0x000000000045ce2b in Game::burstArrow (this=0x7b00000007,
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:75:9: error: stray '@' in program
   75 |     this@entry=0x74dc80 <g_game>, c=0x500680 <typeinfo for Creature>,
      |         ^
prog.cc:76:6: error: stray '@' in program
   76 |     c@entry=0x7faee4004f40, pos=...) at game.cpp:8897
      |      ^
prog.cc:91:2: warning: style of line directive is a GCC extension
   91 | #5  0x000000000045f3f0 in Game::checkCreatureAttacking (
      |  ^
prog.cc:91:5: error: "0x000000000045f3f0" is not a valid filename
   91 | #5  0x000000000045f3f0 in Game::checkCreatureAttacking (
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:104:2: warning: style of line directive is a GCC extension
  104 | #6  0x000000000044dc53 in operator() (a0=<optimized out>, this=<optimized out>)
      |  ^
prog.cc:104:5: error: "0x000000000044dc53" is not a valid filename
  104 | #6  0x000000000044dc53 in operator() (a0=<optimized out>, this=<optimized out>)
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:107:2: warning: style of line directive is a GCC extension
  107 | #7  operator() (arg=<optimized out>, this=<optimized out>) at scheduler.h:93
      |  ^
prog.cc:107:5: error: "operator" is not a valid filename
  107 | #7  operator() (arg=<optimized out>, this=<optimized out>) at scheduler.h:93
      |     ^~~~~~~~
prog.cc:109:2: warning: style of line directive is a GCC extension
  109 | #8  Game::eventThread (p=0x74dc80 <g_game>) at game.cpp:1444
      |  ^
prog.cc:109:5: error: "Game" is not a valid filename
  109 | #8  Game::eventThread (p=0x74dc80 <g_game>) at game.cpp:1444
      |     ^~~~
prog.cc:112:2: warning: style of line directive is a GCC extension
  112 | #9  0x00007faf80261064 in start_thread (arg=0x7faf7e32b700)
      |  ^
prog.cc:112:5: error: "0x00007faf80261064" is not a valid filename
  112 | #9  0x00007faf80261064 in start_thread (arg=0x7faf7e32b700)
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:128:2: warning: style of line directive is a GCC extension
  128 | #10 0x00007faf7e83f62d in clone ()
      |  ^~
prog.cc:128:5: error: "0x00007faf7e83f62d" is not a valid filename
  128 | #10 0x00007faf7e83f62d in clone ()
      |     ^~~~~~~~~~~~~~~~~~
prog.cc:2:1: error: 'Core' does not name a type
    2 | Core was generated by `./otserv'.
      | ^~~~
prog.cc:32:9: error: 'topLeft' does not name a type
   32 |         topLeft = {x = 124, y = 65, z = 7}
      |         ^~~~~~~
prog.cc:33:9: error: 'isBlocking' does not name a type
   33 |         isBlocking = false
      |         ^~~~~~~~~~
prog.cc:39:9: error: 'bSuccess' does not name a type
   39 |         bSuccess = true
      |         ^~~~~~~~
Exit Code:
1