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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail276.d
blob
b5a99a9b9807769eee2a1aaa4e0eaf46ec58c2a0
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail276.d(19): Error: `this` has no effect
5
fail_compilation/fail276.d(15): Error: cannot construct anonymous nested class because no implicit `this` reference to outer class is available
6
---
7
*/
8
9
class
C
10
{
11
this
()
12
{
13
auto
i
=
new class
()
14
{
15
auto
k
=
new class
()
16
{
17
void
func
()
18
{
19
this
.
outer
.
outer
;
20
}
21
};
22
};
23
}
24
int
i
;
25
}
26
void
main
() {}