comparison compile/m/mangleof_19_G.d @ 1229:01942d3423b2

[Issue 532] New: Wrong name mangling for template alias params of local vars Don Clugston <clugdbug@yahoo.com.au> 2006-11-16 news:bug-532-3@http.d.puremagic.com/issues/
author thomask
date Sat, 25 Nov 2006 13:37:24 +0000
parents
children daef239f37cf
comparison
equal deleted inserted replaced
1228:7020fe16bf5e 1229:01942d3423b2
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Don Clugston <clugdbug@yahoo.com.au>
6 // @date@ 2006-11-16
7 // @uri@ news:bug-532-3@http.d.puremagic.com/issues/
8 // @desc@ [Issue 532] New: Wrong name mangling for template alias params of local vars
9
10 module dstress.compile.m.mangleof_19_G;
11
12 template Apple(alias F){
13 alias int[] Basket;
14
15 alias void function (Basket) H;
16
17 const char [] mangledname = typeof(H).mangleof;
18 }
19
20 template Peach(alias A){
21 const char [] root = Apple!(A).mangledname;
22 static assert(Apple!(A).mangledname == root);
23 }
24
25 int main(){
26 int tree;
27 const char[] s = Peach!(tree).root;
28
29 return 0;
30 }