This commit is contained in:
parent
fa30464a96
commit
9d10f4f572
|
@ -7529,7 +7529,7 @@ Token * Tokenizer::initVar(Token * tok)
|
||||||
return tok;
|
return tok;
|
||||||
|
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
} else if (!tok->isStandardType() && tok->next()->str() != "*")
|
} else if (!tok->isStandardType() && tok->str() != "auto" && tok->next()->str() != "*")
|
||||||
return tok;
|
return tok;
|
||||||
|
|
||||||
// goto variable name..
|
// goto variable name..
|
||||||
|
|
|
@ -5013,6 +5013,9 @@ private:
|
||||||
"}\n",
|
"}\n",
|
||||||
true);
|
true);
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
|
|
||||||
|
check("void foo() { int f = 0; auto g(f); g = g; }");
|
||||||
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue