Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

| is a valid binary assignment expression #139

Open
jyn514 opened this issue Dec 4, 2019 · 1 comment
Open

| is a valid binary assignment expression #139

jyn514 opened this issue Dec 4, 2019 · 1 comment
Labels
blocked Waiting for another project to implement a feature or fix a bug bug Something isn't working

Comments

@jyn514
Copy link
Owner

jyn514 commented Dec 4, 2019

int main() {
        _Bool b;
        b |= 1;
}
thread 'main' panicked at 'internal error: entered unreachable code: only valid assign binary ops should be passed to binary_assign_op (got |)', src/ir/expr.rs:343:30

Backtrace:

  13: rcc::ir::expr::<impl rcc::ir::Compiler>::binary_assign_ir
  14: rcc::ir::expr::<impl rcc::ir::Compiler>::assignment
  15: rcc::ir::expr::<impl rcc::ir::Compiler>::compile_expr
  16: rcc::ir::stmt::<impl rcc::ir::Compiler>::compile_stmt
  17: rcc::ir::stmt::<impl rcc::ir::Compiler>::compile_all
  18: rcc::ir::Compiler::compile_func
  19: rcc::ir::compile
  20: rcc::compile
  21: rcc::real_main
  22: rcc::main
jyn514 added a commit that referenced this issue Dec 5, 2019
@jyn514 jyn514 added the blocked Waiting for another project to implement a feature or fix a bug label Dec 5, 2019
@jyn514
Copy link
Owner Author

jyn514 commented Dec 8, 2019

@jyn514 jyn514 added the bug Something isn't working label Dec 8, 2019
jyn514 added a commit that referenced this issue Feb 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked Waiting for another project to implement a feature or fix a bug bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant