Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 1 year ago

Language

C++

Compiler

gcc 13.2.0

Options
Warnings
Optimization
Boost 1.83.0
C++17
-pedantic-errors
Raw compiler options
-Wshadow

Author

anonymous

over 1 year ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.83.0-gcc-13.2.0/include -std=c++17 -pedantic-errors -Wshadow
prog.cc:6:5: warning: declaration of 'hoge' shadows a global declaration [-Wshadow]
    6 |     hoge = 0,
      |     ^~~~
prog.cc:3:25: note: shadowed declaration is here
    3 | typedef struct {int x;} hoge;
      |                         ^~~~
Exit Code:
0