summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash12.C
blob: 73bbb8bb6d6cc692105e1fefb87a0cd3f7e28a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }
// { dg-options "" }
// Origin: Alfred Minarik <a8601248@unet.univie.ac.at>

template<typename T>
struct S
{
  void f() {}
};
 
int main()
{
  S<int> s;
  int len = 50;
  char array[len];
  s.f();
}