Skip to content

Correct incomplete_array_typet [DOC-12] #2820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/util/std_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1050,11 +1050,6 @@ class incomplete_array_typet:public type_with_subtypet
incomplete_array_typet():type_with_subtypet(ID_incomplete_array)
{
}

explicit incomplete_array_typet(const typet &_subtype):
type_with_subtypet(ID_array, _subtype)
{
}
};

/// Check whether a reference to a typet is a \ref incomplete_array_typet.
Expand All @@ -1063,7 +1058,7 @@ class incomplete_array_typet:public type_with_subtypet
template <>
inline bool can_cast_type<incomplete_array_typet>(const typet &type)
{
return type.id() == ID_array;
return type.id() == ID_incomplete_array;
}

/// \brief Cast a typet to an \ref incomplete_array_typet
Expand Down