[Issue 227] New: Internal Compiler error: array concatenation/append on struct
Russ Lewis
spamhole-2001-07-16 at deming-os.org
Wed Jul 5 10:20:42 PDT 2006
Thomas, where can we submit changes to dstress? I know of 5 different
broken files.
Russ
Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> d-bugmail at puremagic.com schrieb am 2006-06-27:
>
>>http://d.puremagic.com/issues/show_bug.cgi?id=227
>
>
>>Just to help narrow the problem down, this works:
>>
>>import std.stdio;
>>
>>struct SPoint
>>{
>> double x,y;
>> static SPoint create(double x,double y)
>> {
>> SPoint p;
>> p.x = x;
>> p.y = y;
>> return p;
>> }
>>}
>>
>>void main()
>>{
>> SPoint[] sps;
>> sps ~= SPoint.create(1,2);
>>
>>//sps = sps ~ SPoint.create(2,4); //Internal error: ..\ztc\type.c 308
>> SPoint sp = SPoint.create(2,4); //This works
>> sps = sps ~ sp;
>>
>> int[] a;
>> a ~= 2;
>> a = a ~ 2;
>>
>> foreach(p; sps)
>> writefln(p.x,",",p.y);
>>}
>
>
> Added to DStress as
> http://dstress.kuehne.cn/run/b/bug_type_308_B.d
> http://dstress.kuehne.cn/run/b/bug_type_308_C.d
> http://dstress.kuehne.cn/run/b/bug_type_308_D.d
> http://dstress.kuehne.cn/run/b/bug_type_308_E.d
> http://dstress.kuehne.cn/run/b/bug_type_308_F.d
> http://dstress.kuehne.cn/nocompile/b/bug_type_308_G.d
> http://dstress.kuehne.cn/nocompile/b/bug_type_308_H.d
>
> Thomas
>
>
> -----BEGIN PGP SIGNATURE-----
>
> iD8DBQFEqjaMLK5blCcjpWoRArKlAJ4kOFINnniRG6lb5iNnjkm7Az3A2wCfcB8D
> Ddjc+XY0QtVEIzwIoBZ/WMY=
> =NFfA
> -----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list