Commit 66256312 by Ian Lance Taylor

Don't get confused by error types in traversal.

From-SVN: r167836
parent b427203d
......@@ -4201,6 +4201,8 @@ Traverse::~Traverse()
bool
Traverse::remember_type(const Type* type)
{
if (type->is_error_type())
return true;
gcc_assert((this->traverse_mask() & traverse_types) != 0
|| (this->traverse_mask() & traverse_expressions) != 0);
// We only have to remember named types, as they are the only ones
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment