aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/template/crash35.C
blob: 348d91d0cafa2be887f008bc9ce0accbf1856b5f (plain)
1
2
3
4
5
6
7
8
9
// PR c++/20463
// { dg-do compile }

template <typename T> struct C; // { dg-error "declaration" }

template <typename T> void C<T>::f() // { dg-error "invalid|template" }
{
  const foo bar;
}