aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-11-22 00:12:33 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-11-22 00:13:48 +0000
commitfcd0480364ba932cf5e9eabb34c7c048f146e758 (patch)
tree151c436fadbd76ecdfbdf50ecf45c6cc0c968836 /Source
parent97a9f5896a00acaf0ad73d763a938d5783425228 (diff)
downloadswig-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.y7
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