www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - -inline problem without return

reply Vathix <chris dprogramming.com> writes:
int foo() { } // No return.
int main()
{
    foo();
    return 0;
}


Outputs the correct:
    Error: AssertError Failure test.d(1)
but add -inline to it and it turns into:
    Error: Win32 Exception
and that's just for this simple example. In my larger project it caused  
compiler failure:
    Internal error: ..\ztc\cod2.c 4364
that I can't seem to recreate with a smaller example.
Jul 14 2005
parent reply =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vathix wrote:

| int foo() { } // No return.
| int main()
| {
|    foo();
|    return 0;
| }
|
|
| Outputs the correct:
|    Error: AssertError Failure test.d(1)
| but add -inline to it and it turns into:
|    Error: Win32 Exception
| and that's just for this simple example. In my larger project it
| caused compiler failure:
|    Internal error: ..\ztc\cod2.c 4364
| that I can't seem to recreate with a smaller example.

Added to DStress as
http://dstress.kuehne.cn/norun/r/return_07_A.d
http://dstress.kuehne.cn/norun/r/return_07_B.d

Thomas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFC3CBX3w+/yD4P9tIRAu7GAJ90S8ebYqBxs3i8Xss1drtsy08QPQCdHXGk
4p+bx6GwDWJpSLAdnJxdZ9g=
=cHkY
-----END PGP SIGNATURE-----
Jul 18 2005
parent Vathix <chris dprogramming.com> writes:
 Added to DStress as
 http://dstress.kuehne.cn/norun/r/return_07_A.d
 http://dstress.kuehne.cn/norun/r/return_07_B.d

 Thomas
Error 404..
Jul 18 2005