Is this a bug?

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Apr 14 03:30:54 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Li Jie schrieb am 2006-04-12:
> In article <e1fa64$17nq$1 at digitaldaemon.com>, Li Jie says...
>>
>>Code:
>>
>>template test(char[] str)
>>{
>>const char test = test1!(str[0]);  // #LINE 87
>>}
>>
>>template test1(char c)
>>{
>>const char test1 = c;
>>}
>
> Modify "test1!(str[0])" to "test1!((str[0]))" can solve the problem.

Added to DStress as
http://dstress.kuehne.cn/compile/t/template_35_A.d
http://dstress.kuehne.cn/compile/t/template_35_B.d
http://dstress.kuehne.cn/compile/t/template_35_C.d

Thomas



-----BEGIN PGP SIGNATURE-----

iD8DBQFEP4Ro3w+/yD4P9tIRAsciAJ92mhtJjmFeDZ+1QhdPuG7w8za1rACfU6Z1
HaBN+ofDk3QWW73XnFruEyY=
=8E8Q
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list