Commit Graph

2 Commits

Author SHA1 Message Date
William S Fulton 3718b810c7 Don't generate constructor wrappers if a base class has a private constructor
g++-5 errors out with this now with errors such as:

default_constructor_wrap.cxx:665:27: error: use of deleted function ‘FFF::FFF()’
   result = (FFF *)new FFF();
                           ^
default_constructor_wrap.cxx:314:7: note: ‘FFF::FFF()’ is implicitly deleted because the default definition would be ill-formed:
 class FFF : public F {
       ^
default_constructor_wrap.cxx:301:4: error: ‘F::~F()’ is private
    ~F() { }
    ^
default_constructor_wrap.cxx:314:7: error: within this context
2015-07-07 20:15:55 +01:00
William S Fulton 930a6922c5 test non-public destructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-29 00:31:24 +00:00