[clang] [clang] Reject 'auto' storage class with type specifier in C++ (PR #166004)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 05:30:55 PST 2026
================
@@ -415,6 +415,12 @@ class DeclSpec {
SourceLocation FriendLoc, ModulePrivateLoc, ConstexprLoc;
SourceLocation TQ_pipeLoc;
+ // Track conflicting type specifier when 'auto' is set (for Finish()
+ // detection)
+ LLVM_PREFERRED_TYPE(TST)
+ unsigned ConflictingTypeSpecifier : 7;
----------------
AaronBallman wrote:
This should be moved up so it's grouped with the other bit-fields, otherwise it won't pack together. I'd put it up with the other type-specifier fields.
https://github.com/llvm/llvm-project/pull/166004
More information about the cfe-commits
mailing list