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
/
pr96254b.d
blob
02e3c484d26e837c71bbc5333b54e5256c495026
1
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96254
2
// { dg-do compile }
3
mixin template
test
()
4
{
5
int
next
;
6
}
7
8
void
foo
(
alias
l
)()
9
{
10
l
.
next
=
0
;
// { dg-error "cannot get frame pointer to 'D main'" }
11
}
12
13
void
bar
(
alias
l
,
alias
t
)()
14
{
15
l
.
next
=
0
;
// { dg-error "cannot get frame pointer to 'D main'" }
16
}
17
18
void
main
()
19
{
20
mixin
test
l1
;
21
mixin
test
l2
;
22
foo
!(
l1
);
23
bar
!(
l1
,
l2
);
24
}