[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git] / clang / test / SemaCXX / PR86790.cpp
blob09e9bb3505e1bf3cf5c660963d6f6e3d0c04321d
1 // RUN: %clang_cc1 -verify -std=c++20 -fsyntax-only %s
3 enum {A, S, D, F};
4 int main() {
5 using asdf = decltype(A);
6 using enum asdf; // this line causes the crash
7 return 0;
10 namespace N1 {
11 enum {A, S, D, F};
12 constexpr struct T {
13 using asdf = decltype(A);
14 using enum asdf;
15 } t;
17 static_assert(t.D == D);
18 static_assert(T::S == S);
21 namespace N2 {
22 enum {A, S, D, F};
23 constexpr struct T {
24 struct {
25 using asdf = decltype(A);
26 using enum asdf;
27 } inner;
28 } t;
30 static_assert(t.inner.D == D);
31 static_assert(t.D == D); // expected-error {{no member named 'D' in 'N2::T'}}