Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc 8.2.0

Options
Warnings
Boost 1.69.0
C++17
no pedantic
Raw compiler options
-fpermissive

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-8.2.0/include -std=c++17 -fpermissive
prog.cc: In function 'int main()':
prog.cc:25:33: warning: taking address of temporary [-fpermissive]
      printp(&(struct xyz){ 3, 4 }); // getting address of compound literal C
                                 ^
1 2
3 4
4 6
3 4
Exit Code:
0