Bugfix: Reset property info when Token::link() is set (< can be a bracket or a comparison operator). Fixes #4075.

This commit is contained in:
PKEuS 2012-08-26 10:23:16 +02:00
parent 8301b5d4d6
commit 6893948c72
2 changed files with 5 additions and 0 deletions

View File

@ -374,6 +374,8 @@ public:
*/
void link(Token *linkToToken) {
_link = linkToToken;
if(_str == "<" || _str == ">")
update_property_info();
}
/**

View File

@ -4280,6 +4280,9 @@ private:
" }\n"
"}");
ASSERT_EQUALS("", errout.str());
check("DensePropertyMap<int, true> visited;"); // #4075
ASSERT_EQUALS("", errout.str());
}
void comparisonOfBoolWithInt2() {