From 762fcc7eb298dcb45d5558eebc256fafe4bcc62c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 25 Sep 2006 20:18:30 +0000 Subject: [PATCH] fix virtual operators #1056100 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9358 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/CParse/parser.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/CParse/parser.y b/SWIG/Source/CParse/parser.y index 69b5e6820..fc929692c 100644 --- a/SWIG/Source/CParse/parser.y +++ b/SWIG/Source/CParse/parser.y @@ -4089,6 +4089,7 @@ cpp_conversion_operator : storage_class COPERATOR type pointer LPAREN parms RPAR $$ = new_node("cdecl"); Setattr($$,k_type,$3); Setattr($$,k_name,$2); + Setattr($$,k_storage,$1); SwigType_add_function($4,$6); if ($8.qualifier) { @@ -4104,6 +4105,7 @@ cpp_conversion_operator : storage_class COPERATOR type pointer LPAREN parms RPAR $$ = new_node("cdecl"); Setattr($$,k_type,$3); Setattr($$,k_name,$2); + Setattr($$,k_storage,$1); decl = NewStringEmpty(); SwigType_add_reference(decl); SwigType_add_function(decl,$6); @@ -4121,6 +4123,7 @@ cpp_conversion_operator : storage_class COPERATOR type pointer LPAREN parms RPAR $$ = new_node("cdecl"); Setattr($$,k_type,$3); Setattr($$,k_name,$2); + Setattr($$,k_storage,$1); SwigType_add_function(t,$5); if ($7.qualifier) { SwigType_push(t,$7.qualifier); @@ -4242,7 +4245,7 @@ cpp_nested : storage_class cpptype ID LBRACE { cparse_start_line = cparse_line } /* A 'class name : base_list { };' declaration, always ignored */ /***** - This fix derived_nested.i, but it adds one shift/reduce. Anyway, + This fixes derived_nested.i, but it adds one shift/reduce. Anyway, we are waiting for the nested class support. *****/ | storage_class cpptype idcolon COLON base_list LBRACE { cparse_start_line = cparse_line; skip_balanced('{','}');