Skip to content

Commit 6ffc37c

Browse files
peterschrammeltautschnig
authored andcommitted
Do not add method body on declaration (will be handled on use)
1 parent 12a71d1 commit 6ffc37c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/cpp/cpp_declarator_converter.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,6 @@ void cpp_declarator_convertert::handle_initializer(
356356
// no initial value yet
357357
symbol.value.swap(value);
358358

359-
if(is_code && declarator.type().id()!=ID_template)
360-
cpp_typecheck.add_method_body(&symbol);
361-
362359
if(!is_code)
363360
cpp_typecheck.convert_initializer(symbol);
364361
}

0 commit comments

Comments
 (0)