[clang] [clang] Implement CWG2877 "Type-only lookup for using-enum-declarator" (PR #95399)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 20 16:27:12 PDT 2024
================
@@ -148,13 +148,10 @@ template <int I> struct C {
enum class D { d,
e,
f };
- using enum D;
-
- static constexpr int W = int(f) + I;
+ using enum D; // expected-error {{using-enum cannot name a dependent type}}
----------------
shafik wrote:
It looks like we always got this wrong, did this fix just fall out of the implementation?
https://github.com/llvm/llvm-project/pull/95399
More information about the cfe-commits
mailing list