aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/range-for9.C
blob: db9be03f48e49ee36d7b3f5e6bfb8e38d727ab56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/118856
// { dg-do compile { target c++11 } }

#include <initializer_list>

template <typename _Tp> struct vector {
  vector(std::initializer_list<_Tp>);
  template <typename T> vector(T, T);
  char * begin();
  char * end();
};

struct f{
  f(const char*);
};

void h() {
  for (auto &vec : vector<vector<f>>{{""}})
    ;
}