blob: 694ed3d127755db93f82d7f9cb61c737def32ab8 [file] [log] [blame]
// PR c++/67364
// { dg-do compile { target c++11 } }
template <typename Xn>
struct element : Xn {
constexpr element() : Xn() { }
};
template <typename Xn>
struct closure {
element<Xn> member;
constexpr closure() { }
};
struct empty { };
constexpr closure<empty> tup{};
constexpr empty first = tup.member;