Menu

#3522 _BitInt internal error

closed-fixed
None
other
5
2022-12-04
2022-11-25
No

Following simple code hang:

typedef _BitInt(32) data_t;
//typedef int32_t data_t; <- this one works

data_t foo(int val) {
    return (data_t)val/2;
}

with error:
"Internal error: validateOpType failed in OP_USES(op) @ /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/SDCCopt.c:740: expected symbol, got value"

SDCC 4.2.8 #13656 (MINGW64)

Related

Wiki: SDCC 4.3.0 Release

Discussion

  • Philipp Klaus Krause

    I can reproduce the issue using sdcc from current svn trunk on my Debian GNU/Linux testing system on amd64.

    The internal data structures at dump_lospre still look fine, So whatever goes wrong happens after line 3346 in SDCCopt.c, but not after line 3432 in SDCCopt.c.

     

    Last edit: Philipp Klaus Krause 2022-12-04
  • Philipp Klaus Krause

    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
     
  • Philipp Klaus Krause

    Fixed in [r13763].

     
    👍
    1

    Related

    Commit: [r13763]


Log in to post a comment.