[PATCH] D95408: [Sema][C] members of anonymous struct inherit QualType
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 9 12:05:14 PDT 2022
nickdesaulniers abandoned this revision.
nickdesaulniers added a comment.
Herald added a project: All.
Prefer https://reviews.llvm.org/D125167.
================
Comment at: clang/test/AST/ast-dump-decl.c:132
+// CHECK: IndirectFieldDecl{{.*}} Test48755Const 'int'
+// CHECK-NEXT: Field{{.*}} 'const struct testIndirectFieldDecl::{{.*}}'
----------------
aaron.ballman wrote:
> This looks wrong to me -- I would have assumed the type would be `const int` and not `int`, which would match the behavior if the type was directly qualified: https://godbolt.org/
Sorry, that godbolt link appears to be malformed (missing unique link)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95408/new/
https://reviews.llvm.org/D95408
More information about the cfe-commits
mailing list