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

template <typename T> struct K {
  static const bool d = true;
};
template <typename T, typename> struct B {
  typedef K<T> D;
  void foo () noexcept (D::d);
};
template <typename T> struct P {
  P () noexcept (K<T>::d);
};
P<int> p;