aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/class-deduction-aggr13.C
blob: d3b21c722c88122cdc3a2319968b03ff973609c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/105476
// { dg-do compile { target c++17 } }

template<class> struct Visitor_functor;

template<class> struct Events {
  template<class... Fn> struct Visitor : Visitor_functor<Fn>::type_t... { };
};

using ev_t = Events<int>;
ev_t::Visitor v = { {} }; // { dg-error "too many initializers" }