[Issue 343] New: Compile error using mixin containing struct
Thomas Kuehne
thomas-dloop at kuehne.cn
Wed Sep 13 15:35:19 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-09-11:
> http://d.puremagic.com/issues/show_bug.cgi?id=343
> Compiling:
>
> struct S
> {
> void* function(void*) fn;
> }
>
> template M()
> {
> S s;
> }
>
> void main()
> {
> mixin M;
> }
>
> Gives:
>
> test.d(8): cannot implicitly convert expression (0) of type int to S
> test.d(8): cannot cast int to S
> test.d(8): cannot cast int to S
<snip>
Added to DStress as
http://dstress.kuehne.cn/run/m/mixin_24_A.d
http://dstress.kuehne.cn/run/m/mixin_24_B.d
http://dstress.kuehne.cn/run/m/mixin_24_C.d
http://dstress.kuehne.cn/run/m/mixin_24_D.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFCIcILK5blCcjpWoRAosUAJ42rGe/PqM3TmJth0t+oau8WSiAsgCgib8K
CPAnv5ixLRaOVs+oQ+5hBrc=
=AOH5
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list