summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit13.C
blob: a0dbfaa6062a82b02fedca45294468869433c920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do link  }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates

template <class U>
struct S 
{
  template <class T>
  void foo(T t);

  template <class T>
  void bar(T t) { this->template foo<U>(3.74); }
};

template <>
template <>
void S<int>::foo(int) { }

int main()
{
  S<int> s;
  s.bar(3);
}