repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr85112.C
blob
13d25bef132c5b0e4f157afeb2d538b3a0c6def3
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
}