summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/ptrmem-cst-arg1.C
blob: 38b3e24241c4aaa466d3c0c2ba41895d495ffdd3 (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" }
};