Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yul compilation failed: Illegal token: Octal numbers not allowed. #222

Closed
agroce opened this issue Jan 31, 2021 · 0 comments · Fixed by #330
Closed

Yul compilation failed: Illegal token: Octal numbers not allowed. #222

agroce opened this issue Jan 31, 2021 · 0 comments · Fixed by #330

Comments

@agroce
Copy link

agroce commented Jan 31, 2021

Compiling this file:

contract Foo:
    baz: map<u256, u256>
    def assign(val: u256) -> u256:
        self.assign(000)
        return self.baz[0]
thread 'main' panicked at 'Yul compilation failed: {"errors":[{"component":"general","formattedMessage":"ParserError: Illegal token: Octal numbers not allowed.\n --> input.yul:1:198:\n  |\n1 |  ... $val) -> return_val { pop($$assign(000)) { return_val := sloadn(dualkec ...\n  |                                         ^\n\n","message":"Illegal token: Octal numbers not allowed.","severity":"error","sourceLocation":{"end":198,"file":"input.yul","start":197},"type":"ParserError"},{"component":"general","formattedMessage":"ParserError: Expected keyword \"data\" or \"object\" or \"}\".\n --> input.yul:1:198:\n  |\n1 |  ... $val) -> return_val { pop($$assign(000)) { return_val := sloadn(dualkec ...\n  |                                         ^\n\n","message":"Expected keyword \"data\" or \"object\" or \"}\".","severity":"error","sourceLocation":{"end":198,"file":"input.yul","start":197},"type":"ParserError"}]}', compiler/src/lib.rs:45:27
stack backtrace:
   0: rust_begin_unwind
             at /rustc/c0b64d97beebb09325b5587abed39f4f1621026f/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/c0b64d97beebb09325b5587abed39f4f1621026f/library/std/src/panicking.rs:435:5
   2: fe_compiler::compile
   3: fe::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Aborted

On latest github master, built with

[profile.dev]
debug = true
panic = "abort"

for fuzzing. Using https://github.com/agroce/afl-compiler-fuzzer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants