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
c++: aggregate base and TARGET_EXPR_ELIDING_P [PR108559]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
aggr-base13.C
blob
c4c7ee0e8f0cf0136f871c45afd8e76d9c1e2338
1
// PR c++/108559
2
// { dg-do compile { target c++17 } }
3
4
struct A {
5
int g = 0;
6
7
A() {}
8
A(const A&) {}
9
};
10
11
struct B : A {};
12
13
A u() { return A{}; }
14
15
int bug() { return B{u()}.g; }
16
17
int main() {
18
return 0;
19
}