[Issue 1270] New: -inline produces an ICE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 16 20:21:24 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1270

           Summary: -inline produces an ICE
           Product: D
           Version: 1.015
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: tazz at gmx.at


Normal compilation works, -O works, only -inline fails with
"Internal error: ..\ztc\cod1.c 1662"

The following code is a minimal but complete testcase:

module bignum;

struct bignum
{
    bool smaller(bignum a, bignum b)
    {
        if (true) return true;
        else      return false;     // comment this out => no ICE for "dmd
bignumtest.d -inline"
        assert(0);          // comment this out => no ICE for "dmd bignumtest.d
-inline"
    }

    bool equal(bignum a, bignum b)
    {
        if (!smaller(a,b))     // comment this out => no ICE for "dmd
bignumtest.d -inline"
            return true;
        return false;
    }
}

void main()
{}


-- 



More information about the Digitalmars-d-bugs mailing list