Language
C++
Compiler
gcc HEAD 10.0.0 20190520 (experimental)
Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
about 6 years ago
C++
gcc HEAD 10.0.0 20190520 (experimental)
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:13:7: error: use of deleted function 'B::B()'
13 | B b;
| ^
prog.cc:6:8: note: 'B::B()' is implicitly deleted because the default definition would be ill-formed:
6 | struct B : A
| ^
prog.cc:6:8: error: use of deleted function 'A::A()'
prog.cc:3:5: note: declared here
3 | A() = delete;
| ^
prog.cc:13:7: warning: unused variable 'b' [-Wunused-variable]
13 | B b;
| ^