Skip to content

Commit cbae5ea

Browse files
author
Daniel Kroening
committed
fix for identifiers for 'this'
1 parent 89ff359 commit cbae5ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cpp/cpp_typecheck_compound_type.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,7 @@ void cpp_typecheckt::add_this_to_method_type(
14831483

14841484
parameter.set_identifier(ID_this); // check? Not qualified
14851485
parameter.set_base_name(ID_this);
1486+
parameter.set_this();
14861487

14871488
typet subtype=symbol_typet(compound_symbol);
14881489

src/cpp/cpp_typecheck_function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void cpp_typecheckt::convert_function(symbolt &symbol)
136136
cpp_scopet &function_scope=cpp_scopes.set_scope(symbol.name);
137137

138138
// fix the scope's prefix
139-
function_scope.prefix+=id2string(symbol.name)+"::";
139+
function_scope.prefix=id2string(symbol.name)+"::";
140140

141141
// genuine function definition -- do the parameter declarations
142142
convert_parameters(symbol.mode, function_type);

0 commit comments

Comments
 (0)