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:
Dave Beazley 2003-02-06 16:57:32 +00:00
commit f9dfaf88bb

View file

@ -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);
} */
} }
; ;