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
/
pr96301c.d
blob
c90946250160a5d0e884b3f013c61b2ac7f562d1
1
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96301
2
// { dg-additional-options "-fPIC" { target fpic } }
3
// { dg-do compile }
4
class
Container
5
{
6
int
[]
children
;
7
8
void
remove
(
void
*
data
)
9
{
10
int
[]
remove
(
int
[]
range
)
11
{
12
auto
result
=
range
;
13
if
(
result
.
front
)
14
return
result
;
15
assert
(
0
);
16
}
17
if
(
data
)
18
remove
(
children
);
19
}
20
}
21
22
int
front
(
int
[]
a
)
23
{
24
return
a
.
ptr
[
0
];
25
}