Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/pr88872.C

raw
1 // PR c++/88872
2 // { dg-do compile { target c++14 } }
3
4 struct a {
5 template <typename b> constexpr a(b) : c() {}
6 int c;
7 };
8 void d();
9 template <char...> constexpr a operator ""_n() { return d; }
10 struct e;
11 struct f {
12 e operator[](int);
13 };
14 struct g {
15 void h();
16 f i;
17 };
18 template <typename> struct j {
19 void k() { [](auto) { constexpr auto l = 2_n; }(keywords); }
20 int keywords;
21 };
22 using m = j<int>;
23 class e : public m {};
24 void g::h() { i[0].k(); }