1 // PR c++/85112
2 // { dg-do compile { target c++11 } }
3 
4 struct A
5 {
6   int m;
7   int n : 4;
8 };
9 
10 int i;  // { dg-message "not const" }
11 
foo()12 void foo()
13 {
14   constexpr int j = i;  // { dg-error "not usable" }
15   A a;
16   a.n = j;
17 }
18