Skip to content

Commit

Permalink
Re-enable access control checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 13, 2018
1 parent df85911 commit e3de3f6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/cpp/cpp_typecheck_compound_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1487,13 +1487,11 @@ bool cpp_typecheckt::get_component(
}
else
{
#if 0
error().source_location=source_location;
str << "error: member `" << component_name
<< "' is not accessible (" << component.get(ID_access) << ")";
str << "\nstruct name: " << final_type.get(ID_name);
error() << "error: member `" << component_name
<< "' is not accessible (" << component.get(ID_access) << ")"
<< eom;
throw 0;
#endif
}
}

Expand Down Expand Up @@ -1523,12 +1521,10 @@ bool cpp_typecheckt::get_component(
{
if(check_component_access(component, final_type))
{
#if 0
error().source_location=source_location;
str << "error: member `" << component_name
<< "' is not accessible";
error() << "error: member `" << component_name
<< "' is not accessible" << eom;
throw 0;
#endif
}

if(object.get_bool(ID_C_lvalue))
Expand Down

0 comments on commit e3de3f6

Please sign in to comment.