Skip to content

[clang] Assertion `IsValid && "Failed to parse input constraint"' failed. #140375

@k-arrows

Description

@k-arrows

To reproduce this crash, the -fopenmp option is essential, but I have no idea why. The program seems to have nothing to do with OpenMP.

Reproducer:
https://godbolt.org/z/5GabqojM4

void foo(int *a, int *b) { __asm__ volatile("" : "+&r"(a) : ""(b)); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:codegenIR generation bugs: mangling, exceptions, etc.confirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions