blob: 12ff86e0d22b331f5858a3428d2a4c486a0c7669 [file] [log] [blame]
// PR c++/55652
// { dg-do compile }
// { dg-options "-std=c++11" }
template <typename T>
struct A
{
static const bool a = false;
};
template <typename X, typename Y = A <X>>
struct B
{
B () noexcept (A <Y>::a) {}
};
template <typename X, typename Y>
struct C
{
X x;
Y y;
};
struct D
{
D () throw (int);
};
C <D, B <D>> c;