aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/ptrmem-cst-arg1.C
blob: ed12655af32acc16b8cba1897d61a620b0fa40bd (plain)
1
2
3
4
5
6
7
8
9
// Origin PR c++/51476
// { dg-do compile { target c++11 } }

template<int> struct A {};                                                               
struct B
{
    int i;
    A<&B::i> a; // { dg-error "could not convert template argument" }
};