[PATCH] D136533: [clang] Fix missing diagnostic of declaration use when accessing TypeDecls through typename access

Mike Hommey via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 19:13:54 PDT 2022


glandium added a comment.

> In either case, this seems to be an issue with libc++ that is out there in the wild.

I don't think it is, actually. I think it's doing something legitimate. That is, it's declaring in its headers that some things are only available on some versions of macos, which is fine if you don't use them, or if you use them in a block guarded with `__builtin_available`. The problem this patch introduces is that it makes it an error to even have those declarations.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136533/new/

https://reviews.llvm.org/D136533



More information about the cfe-commits mailing list