aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/pr104025.C
blob: 9457c8ef52c2db7bec564c0f86e2e099697f6e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/104025
// { dg-do compile }
// { dg-options "-Wmissing-template-keyword -fcompare-debug" }

void bar (int);

struct S { int i; };

template <class C>
struct T
{
  int m;
  C c;
  void foo ()
  {
    bar (c.i < m);
  }
};

template void T<S>::foo ();