1 // PR c++/49136
2 // { dg-do compile { target c++11 } }
3 
4 struct day
5 {
6   unsigned d : 5;
7   unsigned n : 3;
dayday8   constexpr explicit day (int dd) : d(dd), n(7) {}
9 };
10 
11 struct date {
12   int d;
datedate13   constexpr date (day dd) : d(dd.n != 7 ? 7 : dd.d) {}
14 };
15 
16 constexpr day d(0);
17 constexpr date dt(d);
18 static_assert (dt.d == 0, "Error");
19