Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/ref-qual16.C

raw
1 // PR c++/64297
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 typedef int X;
6 template <int> X m_fn1() const;
7 };
8 template <typename> struct is_function {};
9 is_function<int() const &> i;
10 struct D {
11 template <typename Y, typename = is_function<Y>> D(Y);
12 } b(&A::m_fn1<0>);