March 27, 2005
<code>
struct Foo
{
	static Foo bar()
	{
		Foo res;
		return res;
	}
}

void main()
{
	Foo[8] x;  // or any other size, can be dynamically alloc'd
	x[] = Foo.bar;  // same effect with x[0 .. $] and x[0 .. length]
}
</code>

Result:
Internal error: ..\ztc\cod1.c 1648

The code compiles fine with the -inline option


DMD.119; WinXP

-- 
Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
March 27, 2005
Tom S wrote:
| <code>
| struct Foo
| {
|     static Foo bar()
|     {
|         Foo res;
|         return res;
|     }
| }
|
| void main()
| {
|     Foo[8] x;  // or any other size, can be dynamically alloc'd
|     x[] = Foo.bar;  // same effect with x[0 .. $] and x[0 .. length]
| }
| </code>
|
| Result:
| Internal error: ..\ztc\cod1.c 1648
|
| The code compiles fine with the -inline option
|
|
| DMD.119; WinXP
|

Added to DStress as
http://dstress.kuehne.cn/run/bug_cod1_1648_A.d
http://dstress.kuehne.cn/run/bug_cod1_1648_B.d

Thomas