Bugfix: Reset property info when Token::link() is set (< can be a bracket or a comparison operator). Fixes #4075.
This commit is contained in:
parent
8301b5d4d6
commit
6893948c72
|
@ -374,6 +374,8 @@ public:
|
||||||
*/
|
*/
|
||||||
void link(Token *linkToToken) {
|
void link(Token *linkToToken) {
|
||||||
_link = linkToToken;
|
_link = linkToToken;
|
||||||
|
if(_str == "<" || _str == ">")
|
||||||
|
update_property_info();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4280,6 +4280,9 @@ private:
|
||||||
" }\n"
|
" }\n"
|
||||||
"}");
|
"}");
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
check("DensePropertyMap<int, true> visited;"); // #4075
|
||||||
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void comparisonOfBoolWithInt2() {
|
void comparisonOfBoolWithInt2() {
|
||||||
|
|
Loading…
Reference in New Issue