parent
d15b945c9e
commit
8304290f06
|
@ -8359,7 +8359,7 @@ void Tokenizer::findGarbageCode() const
|
|||
if (!tok)
|
||||
syntaxError(switchToken);
|
||||
// Look for the end of the switch statement, i.e. the first semi-colon or '}'
|
||||
for ( ; tok ; tok = tok->next()) {
|
||||
for (; tok ; tok = tok->next()) {
|
||||
if (tok->str() == "{") {
|
||||
tok = tok->link();
|
||||
}
|
||||
|
|
|
@ -556,13 +556,13 @@ private:
|
|||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
// #8509 Uniform initialization ignored for iterator
|
||||
check("void f() {\n"
|
||||
// #8509 Uniform initialization ignored for iterator
|
||||
check("void f() {\n"
|
||||
" std::vector<int> ints;\n"
|
||||
" std::vector<int>::const_iterator iter {ints.cbegin()};\n"
|
||||
" std::cout << (*iter) << std::endl;\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void dereference_break() { // #3644
|
||||
|
|
Loading…
Reference in New Issue