Thread overview
-inline problem without return
Jul 14, 2005
Vathix
Jul 18, 2005
Thomas Kühne
Jul 18, 2005
Vathix
July 14, 2005
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.
July 18, 2005
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

July 18, 2005
> 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..