Fix %template seg fault on some cases of overloading the templated method.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11582 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5118c399f0
commit
d74b680a79
4 changed files with 34 additions and 1 deletions
|
|
@ -2726,7 +2726,7 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
Parm *ti = targs;
|
||||
String *tv = Getattr(tp,"value");
|
||||
if (!tv) tv = Getattr(tp,"type");
|
||||
while(pi != tp) {
|
||||
while(pi != tp && ti && pi) {
|
||||
String *name = Getattr(ti,"name");
|
||||
String *value = Getattr(pi,"value");
|
||||
if (!value) value = Getattr(pi,"type");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue