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++: fix explicit/copy problem [PR109247]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
pr98427.d
blob
225db8b8f2f80cdd78860c8cee1ebede32a7c12b
1
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98427
2
// { dg-do compile }
3
// { dg-options "-O2 -fno-inline" }
4
5
@trusted
memoizeExpr
()
6
{
7
struct
CodepointSet
8
{
9
struct
CowArray
10
{
11
uint
*
ptr
;
12
}
13
14
const
CodepointSet
binary
(
U
)(
U rhs
)
15
{
16
return
rhs
;
17
}
18
19
CowArray array
;
20
}
21
22
CodepointSet
().
binary
(
CodepointSet
());
23
}