C++11 alias templates seg fault fix

Segfault fix when using alias templates, reported by Pierre-Henri Wuillemin
This commit is contained in:
William S Fulton 2013-12-03 23:24:17 +00:00
commit b175df4e5f
2 changed files with 11 additions and 3 deletions

View file

@ -3208,16 +3208,15 @@ c_declaration : c_decl {
$$ = 0; /* TODO - ignored for now */
}
| TEMPLATE LESSTHAN template_parms GREATERTHAN USING idcolon EQUAL {
| TEMPLATE LESSTHAN template_parms GREATERTHAN USING idcolon EQUAL ID {
skip_decl();
$$ = new_node("using");
Setattr($$,"uname",$8);
Setattr($$,"name",$6);
add_symbols($$);
SWIG_WARN_NODE_BEGIN($$);
Swig_warning(WARN_CPP11_ALIAS_TEMPLATE, cparse_file, cparse_line, "The 'using' keyword in template aliasing is not fully supported yet.\n");
SWIG_WARN_NODE_END($$);
$$ = 0; /* TODO - ignored for now */
}
;