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
/
pr85039-1.C
blob
2bda81ba8394c4c4a00989ac2f7bc2e4ce3e649f
1
// { dg-do compile { target c++14 } }
2
3
constexpr int a() {
4
return
5
__builtin_offsetof(struct { // { dg-error "types may not be defined" }
6
int i;
7
short b {
8
__builtin_offsetof(struct {
9
int j;
10
struct c {
11
void d() {
12
}
13
};
14
}, j)
15
};
16
}, i);
17
}