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

Compiler segfault using optional slice #1636

Open
susurri opened this issue Nov 21, 2024 · 0 comments
Open

Compiler segfault using optional slice #1636

susurri opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working Fixed Needs Verification Fixed, but needs verification that it works
Milestone

Comments

@susurri
Copy link

susurri commented Nov 21, 2024

c3c compile the code below segfaults.

fn void main() {
  int[]! a = {1, 2};
  int! b = a[0];
}

c3c --version

C3 Compiler Version:       0.6.5 (Pre-release, Nov 21 2024 00:25:37)
Installed directory:       /home/user/c3
Git Hash:                  c9793457f3046ff0da7179ec87f6c8f4e7bdac97
Backends:                  LLVM
LLVM version:              17.0.6
LLVM default target:       x86_64-pc-linux-gnu
@lerno lerno self-assigned this Nov 21, 2024
@lerno lerno added Bug Something isn't working In Progress This task is currently being worked on labels Nov 21, 2024
@lerno lerno added Fixed Needs Verification Fixed, but needs verification that it works and removed In Progress This task is currently being worked on labels Nov 21, 2024
@lerno lerno added this to the 0.6.5 milestone Nov 21, 2024
NexushasTaken pushed a commit to NexushasTaken/c3c that referenced this issue Nov 24, 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 Fixed Needs Verification Fixed, but needs verification that it works
Projects
None yet
Development

No branches or pull requests

2 participants