summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/error1.C
blob: c94fd65d31db9af9cd6537a5490a2d5080d0317e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S
{
  template <class U>
  void f ();
  
};

template <class T>
template <class U>
void S<T>::f ()
{
  U& u; // { dg-error "" } uninitialized reference
}

template void S<int>::f<double>();