summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash47.C
blob: e77c49fe4d5128296ed499f3a33439c87c5c025d (plain)
1
2
3
4
5
6
7
8
9
// PR c++/37531
// { dg-do compile }
// { dg-options "-std=gnu++98" }

void
foo ()
{
  (int[i]) { 0 };	// { dg-error "was not declared in this scope" }
}