* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ref11.C
blob78ea77e81d245269391d726b163d6980ab28110e
1 // PR c++/77598
2 // { dg-do compile { target c++11 } }
4 template <typename T>
5 struct A { static constexpr T a = T (); };
6 template <typename T>
7 constexpr T A<T>::a;
8 struct B
10   int b;
11   constexpr int foo () const { return b; }
12   constexpr B (const int &x) : b(x) {};
14 struct C : public B
16   constexpr C () : B(50) {};
18 struct D : public C
21 struct E
23   static constexpr const auto &e = A<D>::a;
25 constexpr const B &f = E::e;
26 constexpr const int g = f.foo ();