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

[Bug] Unsupported Array Indexing in sol! Macro #802

Open
rkdud007 opened this issue Nov 3, 2024 · 0 comments
Open

[Bug] Unsupported Array Indexing in sol! Macro #802

rkdud007 opened this issue Nov 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rkdud007
Copy link

rkdud007 commented Nov 3, 2024

Component

sol! macro

What version of Alloy are you on?

├── alloy v0.5.4

Operating System

macOS (Apple Silicon)

Describe the bug

I've encountered two issues related to array indexing in the sol! macro, both of which lead to compilation errors. Here’s a breakdown of each issue and where they occur in the codebase:

  1. First Error:

    • Location: Emu.sol#L39
    • Error Message: generic expressions are not supported in array type sizes
  2. Second Error:

    • Location: Emu.sol#L128
    • Error Message: unexpected token, expected ']'
    • Description: This issue arises when declaring a bool[64 * 32] array.
@rkdud007 rkdud007 added the bug Something isn't working label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant