Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200918 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
-pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:7:15: warning: self-comparison always evaluates to false [-Wtautological-compare]
    7 |    int l = (i != i,0);   // C4547
      |             ~ ^~ ~
prog.cc:7:15: warning: left operand of comma operator has no effect [-Wunused-value]
    7 |    int l = (i != i,0);   // C4547
      |             ~~^~~~
prog.cc:7:8: warning: unused variable 'l' [-Wunused-variable]
    7 |    int l = (i != i,0);   // C4547
      |        ^
Exit Code:
0