[clang] [clang][NFC] Prevent scope pollution from repeat type specifiers (PR #193144)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 22:49:57 PDT 2026
ojhunt wrote:
@TPPPP72 So I think this is the correct fix - we stop the parser from mutating the scope of the declaration context when there is already a type specifier.
@mizvekov @cor3ntin I'm not sure if we should also gate any other mutation of the declcontext as I'm not sure how much of that mutation is responsible for the detection of the duplicated specifier. I'm also not sure the point of "duplicate type specifiers" it's worth trying to be pedantic about where the other errors are?
https://github.com/llvm/llvm-project/pull/193144
More information about the cfe-commits
mailing list