]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-value5.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-value5.C
1 // PR c++/68890
2 // { dg-do compile { target c++11 } }
3
4 class ptr;
5 template <long _Nm> struct A { typedef ptr _Type[_Nm]; };
6 template <long _Nm> struct B { typename A<_Nm>::_Type _M_elems; };
7 template <long N> class FixedVector : B<N> {
8 public:
9 typedef B<1> base;
10 constexpr FixedVector() : base(), size_() {}
11 char size_;
12 };
13 class ptr {
14 public:
15 constexpr ptr() : px_(){};
16 int px_;
17 };
18 FixedVector<1> a;
This page took 0.038793 seconds and 5 git commands to generate.