Skip to content

Fix #14955: Bad varid for enumerator with using namespace - #8773

Open
ludviggunne wants to merge 3 commits into
cppcheck-opensource:mainfrom
ludviggunne:14955-namespace-varid
Open

Fix #14955: Bad varid for enumerator with using namespace#8773
ludviggunne wants to merge 3 commits into
cppcheck-opensource:mainfrom
ludviggunne:14955-namespace-varid

Conversation

@ludviggunne

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/tokenize.cpp Outdated
Comment thread test/testtokenize.cpp
"5: int E0@1 ; E0@1 = E :: E0 ;\n"
"6: }\n";
ASSERT_EQUALS(expected, tokenizeDebugListing(code));
(void)errout_str();

@chrchr-github chrchr-github Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ignore_errout()? But is there anything to ignore without auto?
It also looks like a cast is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants