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: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
ice16035.d
blob
8361c42cf2ebe835358e401f42cff1799c24134a
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/ice16035.d(18): Error: forward reference to inferred return type of function call `this.a[0].toString()`
5
fail_compilation/ice16035.d(13): Error: template instance `ice16035.Value.get!string` error instantiating
6
---
7
*/
8
9
struct
Value
10
{
11
auto
toString
()
inout
12
{
13
get
!
string
;
14
}
15
16
T
get
(
T
)()
17
{
18
a
[
0
].
toString
();
19
}
20
21
const
(
Value
)*
a
;
22
}