summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/ref-bind6.C
blob: c85a5cfb36f33faabb4241ba615ff06ee4b129f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/91889 - follow-up fix for DR 2352.
// { dg-do compile { target c++11 } }

template <typename T> struct A {
  A(const T &);
};

struct {
  int *m;
} a;

void fn1() { A<const int *>(a.m); }