prog.cpp: In function 'int main()':
prog.cpp:35:13: error: use of deleted function 'derived1::derived1(const derived1&)'
auto d1c = d1;
^
prog.cpp:16:7: note: 'derived1::derived1(const derived1&)' is implicitly deleted because the default definition would be ill-formed:
class derived1 : private baseclass {};
^
prog.cpp:16:7: error: use of deleted function 'baseclass::baseclass(const baseclass&)'
prog.cpp:9:2: note: declared here
baseclass(baseclass const&) = delete;
^