Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200914 (experimental)

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

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:7:11: warning: comparison with string literal results in unspecified behavior [-Waddress]
    7 |    if (pc == "Hello") // C4130
      |        ~~~^~~~~~~~~~
Exit Code:
0