summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash62.C
blob: bd8a0f40e05895cd9d93530ca3abe9b427510ceb (plain)
1
2
3
4
5
6
// PR c++/29728

template<int> void foo()
{
  int a[] = { X: 0 }; // { dg-error "designated initializer" }
}