[dmd-internals] Can't compile DMD1

Don Clugston dclugston at googlemail.com
Fri Apr 8 00:35:42 PDT 2011


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


More information about the dmd-internals mailing list