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
Be careful about comdat boundary in ICF (PR ipa/82352).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
stmtexpr19.C
blob
0c19a210f709b10c576593f0812bee18ca36e5ef
1
// PR c++/81073
2
// { dg-options "" }
3
// { dg-do compile { target c++11 } }
4
5
struct test { const int *addr; };
6
7
const test* setup()
8
{
9
static constexpr test atest =
10
{
11
({ static const int inner = 123; &inner; }) // { dg-error "static" }
12
};
13
14
return &atest;
15
}
16
17
int main(){}