Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.1 20200224 (experimental)

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

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:25:21: warning: operation on 'j' may be undefined [-Wsequence-point]
   25 |     cout << *j << *(++j) << *(++j) << *(++j); // HERE IS THE PROBLEM
      |                    ~^~~~
3816
0x7ffee21ff1a0
0x7ffee21ff1a4
0x7ffee21ff1a8
0x7ffee21ff1ac
0x7ffee21ff1a0
3816
Exit Code:
0