decltype fix on missing type info

This commit is contained in:
William S Fulton 2013-12-04 00:24:15 +00:00
commit 5504bd3201

View file

@ -6033,6 +6033,7 @@ decltype : DECLTYPE LPAREN idcolon RPAREN {
Node *n = Swig_symbol_clookup($3,0);
if (!n) {
Swig_error(cparse_file, cparse_line, "Identifier %s not defined.\n", $3);
$$ = $3;
} else {
$$ = Getattr(n, "type");
}