Menu ▾ ▴

#3024 FATAL Compiler Internal Error on complicated double-based code

closed-out-of-date
None
other
5
2023-01-26
2020-06-06
No
void g();

void f(double d)
{
    double a;
    double b = 0.0;
    for (int i = 0;; i++)
    {
        double c = d * d;
        if (i)
            b = c / a;
        if (b)
            g();

        a = c;
    }
}

Compiling this with sdcc test.c results in test.c:7: error 9: FATAL Compiler Internal Error in file 'SDCCBBlock.c' line number '546' : code generator internal error. Tested with commit 11647.

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Philipp Klaus Krause

    • status: open --> closed-out-of-date
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Works for me as of [r13827].

     

    Related

    Commit: [r13827]


Log in to post a comment.