Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200917 (experimental)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a
prog.cc: In function 'int main()':
prog.cc:7:10: warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
    7 |    if (u < 0)    // C4296
      |        ~~^~~
prog.cc:9:10: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits]
    9 |    if (u >= 0)   // C4296
      |        ~~^~~~
Exit Code:
0