April 08, 2011 [dmd-internals] Can't compile DMD1 | ||||
---|---|---|---|---|
| ||||
Some D2 no-throw stuff has been put into D1. \dm\bin\dmc -c -Iroot;\dm\include -D -g -DUNITTEST -cpp -D_DH func int offend = fbody ? fbody->blockExit() & BEfallthru : TRUE; ^ func.c(1099) : Error: 1 actual arguments expected for function, had 0 I think this should just be fbody->blockExit(false); int blockExit(bool mustNotThrow); It's always OK to throw in D1. ----------- The offending commit: commit 0a6c91f1524cb5230466d326f7ff3aabcf618230 Author: Walter Bright <walter at walterbright.com> Date: Sun Mar 6 15:20:58 2011 -0800 harmonize with D2 |
April 08, 2011 [dmd-internals] Can't compile DMD1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | Seems I forgot to push a file. Fixed.
On 4/8/2011 12:35 AM, Don Clugston wrote:
> Some D2 no-throw stuff has been put into D1.
>
> \dm\bin\dmc -c -Iroot;\dm\include -D -g -DUNITTEST -cpp -D_DH func
> int offend = fbody ? fbody->blockExit()& BEfallthru : TRUE;
> ^
> func.c(1099) : Error: 1 actual arguments expected for function, had 0
>
> I think this should just be fbody->blockExit(false);
>
> int blockExit(bool mustNotThrow);
>
> It's always OK to throw in D1.
>
> -----------
>
> The offending commit:
>
> commit 0a6c91f1524cb5230466d326f7ff3aabcf618230
> Author: Walter Bright<walter at walterbright.com>
> Date: Sun Mar 6 15:20:58 2011 -0800
>
> harmonize with D2
>
|
Copyright © 1999-2021 by the D Language Foundation