Fix incorrect access for methods added via the 'using' declaration

Exception specifications were not being added to methods added via the 'using' declaration


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-05-25 21:23:15 +00:00
commit c697a7368a

View file

@ -831,10 +831,14 @@ class TypePass : private Dispatcher {
}
}
Node *nn = copyNode(c);
Delattr(nn,"access"); // access might be different from the method in the base class
if (!Getattr(nn,"sym:name")) Setattr(nn,"sym:name", symname);
if (!Getattr(nn,"feature:ignore")) {
Setattr(nn,"parms",CopyParmList(Getattr(c,"parms")));
ParmList *throw_parm_list = Getattr(c,"throws");
if (throw_parm_list)
Setattr(nn,"throws",CopyParmList(throw_parm_list));
ccount++;
if (!last_unodes) {
last_unodes = nn;