summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1y/regress1.C
blob: d4566d0a216fc2bb00dce0244258b0db786619ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/60409
// { dg-do compile { target c++14 } }

struct A
{
  void foo();
};

template<typename T> void bar(T)
{
  (A().foo)();
}