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:
parent
d4c40df526
commit
c7e970d87a
1 changed files with 6 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue