Menu

#3049 [pdk13/14/15] Compiler hangs on simple loop

closed-duplicate
None
other
5
2020-06-18
2020-06-11
No
void f(int a, int b, int c)
{
    for (int i = 0; i < 0; ++i)
        if ((a != 0) ? c : 0)
            c /= b;
}

Compiling this with sdcc test.c -mpdk13 yields nothing, the compiler just hangs forever. Tested wtih commit 11662.

Related

Bugs: #3059

Discussion

  • Philipp Klaus Krause

    Like bug [#3047], this is apparenlty related to variables of type __bit having been introduced by the front-end.

     

    Related

    Bugs: #3047


    Last edit: Maarten Brock 2020-06-13
  • Erik Petrich

    Erik Petrich - 2020-06-18
    • status: open --> closed-duplicate
    • assigned_to: Erik Petrich
     
  • Erik Petrich

    Erik Petrich - 2020-06-18

    Fixed in [r11680]

     

Log in to post a comment.

MongoDB Logo MongoDB