Language
C++
Compiler
gcc HEAD 11.0.0 20201114 (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
Exit Code:
1
Author
anonymous
over 4 years ago
C++
gcc HEAD 11.0.0 20201114 (experimental)
Author
anonymous
over 4 years ago
$ 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:10:12: error: taking address of rvalue [-fpermissive]
10 | func(&(A{}));
| ~^~~~
prog.cc:11:17: error: taking address of rvalue [-fpermissive]
11 | func(&make_A());
| ~~~~~~^~