OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash41.C
1 // { dg-do compile  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 template <int> struct S1{};
5
6 struct S2 { int i; };
7
8 template <class T>
9 void f(S2 s2) {
10   S1<s2.i> s1; // { dg-error "" }
11 }