Fix seg fault for some template parameters which have no type, just a default value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da1fc3ab8f
commit
57fff12d5f
2 changed files with 17 additions and 3 deletions
|
|
@ -2644,6 +2644,7 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
n = Swig_cparse_template_locate($5,$7,tscope);
|
||||
|
||||
/* Patch the argument types to respect namespaces */
|
||||
Printf(stdout, " p before patching: %s\n", ParmList_str_defaultargs($7));
|
||||
p = $7;
|
||||
while (p) {
|
||||
SwigType *value = Getattr(p,"value");
|
||||
|
|
@ -2669,6 +2670,7 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
|
||||
p = nextSibling(p);
|
||||
}
|
||||
Printf(stdout, " p after patching: %s\n", ParmList_str_defaultargs($7));
|
||||
|
||||
/* Look for the template */
|
||||
{
|
||||
|
|
@ -2746,6 +2748,7 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
def_supplied = 1;
|
||||
}
|
||||
}
|
||||
Printf(stdout, " p tempar patching: %s\n", ParmList_str_defaultargs(temparms));
|
||||
|
||||
templnode = copy_node(nn);
|
||||
/* We need to set the node name based on name used to instantiate */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue