Fixed [ 675491 ] parse error with global namespace qualification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2820b0ce61
commit
f9dfaf88bb
1 changed files with 4 additions and 1 deletions
|
|
@ -4375,6 +4375,7 @@ template_decl : LESSTHAN valparms GREATERTHAN {
|
||||||
String *s = NewString("");
|
String *s = NewString("");
|
||||||
SwigType_add_template(s,$2);
|
SwigType_add_template(s,$2);
|
||||||
$$ = Char(s);
|
$$ = Char(s);
|
||||||
|
scanner_last_id(1);
|
||||||
}
|
}
|
||||||
| empty { $$ = (char*)""; }
|
| empty { $$ = (char*)""; }
|
||||||
;
|
;
|
||||||
|
|
@ -4428,7 +4429,9 @@ idcolontail : DCOLON idtemplate idcolontail {
|
||||||
|
|
||||||
idtemplate : ID template_decl {
|
idtemplate : ID template_decl {
|
||||||
$$ = NewStringf("%s%s",$1,$2);
|
$$ = NewStringf("%s%s",$1,$2);
|
||||||
scanner_last_id(1);
|
/* if (Len($2)) {
|
||||||
|
scanner_last_id(1);
|
||||||
|
} */
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue