Added error message for using %template with qualified names inside of
a namespace. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d5b79d9a6d
commit
603a9e5076
1 changed files with 7 additions and 0 deletions
|
|
@ -1849,6 +1849,13 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
|
|||
}
|
||||
}
|
||||
|
||||
if (ns && Namespaceprefix) {
|
||||
Swig_error(cparse_file,cparse_line,
|
||||
"Can't instantiate template '%s' inside namespace '%s'.\n"
|
||||
"Suggest moving %%template outside the namespace.\n", $5, Namespaceprefix);
|
||||
|
||||
}
|
||||
|
||||
/* Create namespace nodes to enclose the template declaration */
|
||||
if (ns) {
|
||||
List *scopes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue