emojicode / emojicode

😀😜🔂 World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Stored value type does not match pointer operand type!

joeskeen opened this issue · comments

Minimal reproducible code:

🏁🍇
    🍿 0 1 2 3 4 5 6 7 8 9 🍆 ➡️ list
    😀 🔤🧲🐽list 0❗🧲 🧲🐽list 1❗🧲 🧲🐽list 2❗🧲🔤 ❗
🍉

Full error:

Stored value type does not match pointer operand type!
  store %box* %75, %box* %2
 %box = type { %boxInfo*, [32 x i8] }Stored value type does not match pointer operand type!
  store %box* %106, %box* %1
 %box = type { %boxInfo*, [32 x i8] }Stored value type does not match pointer operand type!
  store %box* %137, %box* %0
 %box = type { %boxInfo*, [32 x i8] }
Detected in: 🏁 (fn_1f3c1)
=============
Stored value type does not match pointer operand type!
  store %box* %75, %box* %2
 %box = type { %boxInfo*, [32 x i8] }Stored value type does not match pointer operand type!
  store %box* %106, %box* %1
 %box = type { %boxInfo*, [32 x i8] }Stored value type does not match pointer operand type!
  store %box* %137, %box* %0
 %box = type { %boxInfo*, [32 x i8] }Segmentation fault (core dumped)

However, this does work:

🏁🍇
    🍿 0 1 2 3 4 5 6 7 8 9 🍆 ➡️ list
    🐽list 0❗ ➡️ element1
    🐽list 1❗ ➡️ element2
    🐽list 2❗ ➡️ element3
    😀 🔤🧲element1🧲 🧲element2🧲 🧲element3🧲🔤 ❗
🍉

It seems that complex expressions (such as accessing an element of an array/list) inside of string interpolation causes this issue.