Skip to content

Commit ba2d4be

Browse files
no duplicate scope prefix
1 parent e1e997a commit ba2d4be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cpp/cpp_typecheck_function.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Module: C++ Language Type Checking
55
Author: Daniel Kroening, [email protected]
66
77
\*******************************************************************/
8-
98
//#define DEBUG
109

1110
#ifdef DEBUG
@@ -153,7 +152,7 @@ void cpp_typecheckt::convert_function(symbolt &symbol)
153152
cpp_scopet &function_scope=cpp_scopes.set_scope(symbol.name);
154153

155154
// fix the scope's prefix
156-
function_scope.prefix+=id2string(symbol.name)+"::";
155+
function_scope.prefix = id2string(symbol.name)+"::";
157156

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

0 commit comments

Comments
 (0)