diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-11-22 00:12:33 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-11-22 00:13:48 +0000 |
commit | fcd0480364ba932cf5e9eabb34c7c048f146e758 (patch) | |
tree | 151c436fadbd76ecdfbdf50ecf45c6cc0c968836 /Source | |
parent | 97a9f5896a00acaf0ad73d763a938d5783425228 (diff) | |
download | swig-fcd0480364ba932cf5e9eabb34c7c048f146e758.tar.gz |
Fix some cases of C++11 exception specifications on constructors with =default or =delete
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CParse/parser.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index bb1b5c1cc..caac88e4d 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -6780,6 +6780,13 @@ ctor_end : cpp_const ctor_initializer SEMI { $$.throwf = 0; $$.nexcept = 0; } + | exception_specification EQUAL default_delete SEMI { + $$.have_parms = 0; + $$.defarg = $3.val; + $$.throws = $1.throws; + $$.throwf = $1.throwf; + $$.nexcept = $1.nexcept; + } ; ctor_initializer : COLON mem_initializer_list |