fork download
  1. struct Member {
  2. Member () noexcept;
  3. };
  4.  
  5. class indestructible_base
  6. {
  7. ~indestructible_base();
  8. Member m;
  9. };
  10.  
  11. class T : indestructible_base
  12. {
  13. public:
  14. //T() {}
  15. };
  16.  
  17. int main(void) { new T(); }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:15: error: expected ';' before 'noexcept'
stdout
Standard output is empty