☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr85112.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/pr85112.C
code
plain
raw
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
12
void foo()
13
{
14
constexpr int j = i; // { dg-error "not usable" }
15
A a;
16
a.n = j;
17
}