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

Struct field called number leads to ICE #709

Closed
cburgdorf opened this issue May 18, 2022 · 0 comments · Fixed by #676
Closed

Struct field called number leads to ICE #709

cburgdorf opened this issue May 18, 2022 · 0 comments · Fixed by #676
Labels
flag: beta-required Required for first beta release type: bug

Comments

@cburgdorf
Copy link
Collaborator

What is wrong?

The following leads to a compiler error:

struct Foo:
  pub number: u256

contract Meh:

  pub fn yay() -> Foo:
    return Foo(number:2)

Leads to ICE

Error: ParserError: Cannot use builtin function name "number" as identifier name.
  --> input.yul:18:36:
   |
18 |             function $$foo$Foo.new(number) -> return_val {
   |                                    ^^^^^^


Error: ParserError: Expected keyword "data" or "object" or "}".
  --> input.yul:18:36:
   |
18 |             function $$foo$Foo.new(number) -> return_val {
   |                                    ^^^^^^


thread 'main' panicked at 'Yul compilation failed with the above errors', crates/driver/src/lib.rs:179:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

You've hit an internal compiler error. This is a bug in the Fe compiler.
Fe is still under heavy development, and isn't yet ready for production use.

If you would, please report this bug at the following URL:
  https://github.com/ethereum/fe/issues/new

How can it be fixed

Needs to be investivated

@cburgdorf cburgdorf added type: bug flag: beta-required Required for first beta release labels May 18, 2022
@Y-Nak Y-Nak mentioned this issue May 19, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: beta-required Required for first beta release type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant