summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash51.C
blob: a3fbc17f163b42e9a44398e461107100df5d39b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// { dg-options "-fpermissive -w" }
// Origin: Mark Mitchell <mark@codesourcery.com>

char foo[26];

template <class T>
void f ()
{
  foo = "0123456789012345678901234"; // { dg-error "array" }
}

template void f<int>();