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
d: Fix ICE in build_deref, at d/d-codegen.cc:1650 [PR111650]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
pr111650.d
blob
4298a76d38f9820e5967e94cbe938330c1c331cb
1
// { dg-do compile }
2
ref
V
require
(
K
,
V
)(
ref
V
[
K
]
aa
,
K key
,
lazy
V value
);
3
4
struct
Root
5
{
6
ulong
[
3
]
f
;
7
}
8
9
Root
[
ulong
]
roots
;
10
11
Root
getRoot
(
int
fd
,
ulong
rootID
)
12
{
13
return
roots
.
require
(
rootID
,
14
{
15
Root result
;
16
inoLookup
(
fd
, () =>
result
);
17
return
result
;
18
}());
19
}
20
21
void
inoLookup
(
int
,
scope
Root
delegate
()) { }