Fixed explicit instantiation syntax error.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4305 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-02-12 17:18:35 +00:00
commit c7e970d87a

View file

@ -956,8 +956,8 @@ declaration : swig_directive { $$ = $1; }
add_symbols($$);
}
$$ = $1;
}
;
}
;
/* ======================================================================
@ -2658,6 +2658,10 @@ cpp_template_decl : TEMPLATE LESSTHAN template_parms GREATERTHAN { template_para
}
if (error) $$ = 0;
}
| TEMPLATE cpptype idcolon {
Swig_warning(WARN_PARSE_EXPLICIT_TEMPLATE, cparse_file, cparse_line, "Explicit template instantiation ignored.\n");
$$ = 0;
}
;
cpp_temp_possible: c_decl {