aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/crash63.C
blob: c7189c2c17e95cf8b6bde6be77c804c40969defb (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/57947
// { dg-options "-std=c++98" }

namespace std
{
  template <class E> class initializer_list {};
  template <int N> struct D { D(initializer_list<int>) {} };
  D<0> d {1, 2, 3};  // { dg-error "constructor|no matching" }
  // { dg-warning "initializer list" "" { target *-*-* } 8 }
}