diff options
author | Vlad Serebrennikov <serebrennikov.vladislav@gmail.com> | 2024-06-21 13:49:43 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 13:49:43 +0400 |
commit | bc4d50f02ded9eea287daccf2b4a39ae5d30abd0 (patch) | |
tree | afd9456b7133a4c1a35d56a48a90ba5cab923014 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | aed989157ddcdaaf3fea295c449f23dffe327ae5 (diff) | |
download | llvm-bc4d50f02ded9eea287daccf2b4a39ae5d30abd0.zip llvm-bc4d50f02ded9eea287daccf2b4a39ae5d30abd0.tar.gz llvm-bc4d50f02ded9eea287daccf2b4a39ae5d30abd0.tar.bz2 |
[clang] Implement CWG2877 "Type-only lookup for using-enum-declarator" (#95399)
This patch implements 2024-05-31 resolution of a tentatively ready issue
[CWG2877](https://cplusplus.github.io/CWG/issues/2877.html) "Type-only
lookup for using-enum-declarator", which supersedes earlier
[CWG2621](https://cplusplus.github.io/CWG/issues/2621.html) "Kind of
lookup for `using enum` declarations".
Now we perform type-only lookup (not to be confused with type-only
context) for `elaborated-enum-declarator`. This is the same kind of
lookup that elaborated type specifiers and base specifiers undergo.
I also found out (and fixed) that one of our existing tests claimed that
a dependent type can be used in `elaborated-enum-declarator`, but that's
not the case:
> The
[using-enum-declarator](http://eel.is/c++draft/enum.udecl#nt:using-enum-declarator)
shall designate a non-dependent type with a reachable
[enum-specifier](http://eel.is/c++draft/dcl.enum#nt:enum-specifier)[.](http://eel.is/c++draft/enum.udecl#1.sentence-2)
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions