Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc 9.2.0

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

Author

anonymous

almost 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-9.2.0/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:19:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   19 |     else
      |     ^~~~
prog.cc:22:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   22 |  if(reinterpret_cast<uintptr_t>(pVec) % alignof(Vec3d) == 0)
      |  ^~
prog.cc:24:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   24 |     else
      |     ^~~~
prog.cc:27:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   27 |  delete[] pVec;
      |  ^~~~~~
sizeof(Vec3d) is 32
alignof(Vec3d) is 32
Vec is aligned to alignof(Vec3d)!
pVec is aligned to alignof(Vec3d)!
Exit Code:
0