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