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
PR libstdc++/87308 adjust regex used in std::any pretty printer
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr85039-1.C
blob
f57c8a261deef306b9edb229e3e6bab9a7c208a0
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 { // { dg-error "types may not be defined" }
9
int j;
10
struct c { // { dg-error "types may not be defined" }
11
void d() {
12
}
13
};
14
}, j)
15
};
16
}, i);
17
}