diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-04 00:24:15 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-04 00:24:40 +0000 |
commit | 5504bd32017d9265abe43bacf9dbb7d1ecb4400a (patch) | |
tree | 666798ecdaecfd5b40f5dc71b5204622fcb7387d /Source | |
parent | b175df4e5f906741b5c0b44530b42f62b9699184 (diff) | |
download | swig-5504bd32017d9265abe43bacf9dbb7d1ecb4400a.tar.gz |
decltype fix on missing type info
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CParse/parser.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index 1606dc249..3384dcc5b 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -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"); } |