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++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-init19.C
blob
d354c5ad609e296b0e6a352ad5490701a5f5a746
1
// PR c++/97328
2
// { dg-do compile { target c++20 } }
3
4
struct vector {
5
struct storage {
6
int t;
7
constexpr storage() {}
8
} data[8];
9
};
10
11
constexpr auto foo() {
12
vector i;
13
return i;
14
}
15
auto val = foo();