Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181229 (experimental)

Options
Warnings
Boost 1.69.0
C++2a
-pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=c++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:12:18: error: taking address of rvalue [-fpermissive]
   12 |     s2.save(&Foo());
      |                  ^
Exit Code:
1