digitalmars.D.bugs - Internal error: ..\ztc\cod1.c 1648
-
Tom S
(21/21)
Mar 27 2005
- =?ISO-8859-1?Q?Thomas_K=FChne?= (38/38) Mar 27 2005 -----BEGIN PGP SIGNED MESSAGE-----
<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 +/
Mar 27 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
iD8DBQFCRvsJ3w+/yD4P9tIRAtYAAJ9ZjY29eNr0j/8MoIXawb2OGWdL9QCeLW/N
EjazSJ4pdrEPDOPzsfVkMR0=
=zCHU
-----END PGP SIGNATURE-----
Mar 27 2005








=?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn>