Skip to content

Nested clean-up-requiring blocks in loop (sometimes) segfault [rustc] #293

Closed
@marijnh

Description

@marijnh

This one does:

fn main() {
  auto i = 0;
   while (i < 20) {
     {
       auto pt2 = @i;
       auto pt = @i;
       i = *pt + 1;
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions