From d0037d9ef43d83b3718265b7a4fcd2fef2d71982 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Thu, 6 Feb 2003 16:57:32 +0000 Subject: [PATCH] Fixed [ 675491 ] parse error with global namespace qualification git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4255 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/CParse/parser.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 5898e7fe1..fe685437c 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -4375,6 +4375,7 @@ template_decl : LESSTHAN valparms GREATERTHAN { String *s = NewString(""); SwigType_add_template(s,$2); $$ = Char(s); + scanner_last_id(1); } | empty { $$ = (char*)""; } ; @@ -4428,7 +4429,9 @@ idcolontail : DCOLON idtemplate idcolontail { idtemplate : ID template_decl { $$ = NewStringf("%s%s",$1,$2); - scanner_last_id(1); + /* if (Len($2)) { + scanner_last_id(1); + } */ } ;