Skip to content

Possible short-circuit miscompile for while loop guard #3830

Closed
@burg

Description

@burg

In the code linked below, the LHS of an && expression is used as an array bounds guard for the RHS.

This seems to be miscompiled, such that assigning each subexpression to a local inside the loop works fine, but segfaults occur when putting the whole thing as the while condition.

servo/servo@b0536d7

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-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