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
Revert "c++: free garbage vec in coerce_template_parms"
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
ice12838.d
blob
c1edd4f9c7c6f541367ffbf942f59f5571159cdf
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/ice12838.d(27): Error: cannot implicitly convert expression `1` of type `int` to `string`
5
---
6
*/
7
8
struct
Tuple
(
T
...)
9
{
10
T field
;
11
alias
field
this
;
12
}
13
14
struct
Data
15
{
16
string a
;
17
}
18
19
template
toTuple
(
T
)
20
{
21
mixin
(
`alias toTuple = Tuple!(string);`
);
22
}
23
24
void
main
()
25
{
26
toTuple
!
Data a
;
27
a
[
0
] =
1
;
// ICE!
28
}