Skip to content

[clang-cl] clang-cl stuck when compiling such code with /EHa #124222

Open
@regomne

Description

@regomne
struct S
{
    ~S() {}
};

class ClassA
{
public:
    int foo(int, int);
};

int ClassA::foo(int a, int b)
{
    if (a > 0)
    {
    }
    if (b & 0)
    {
    }
    S s;
    return 0;
}

Clang version: 18.1.8

Compile the above code in Windows with:

clang-cl /c /EHa a.cpp

may causes the clang-cl.exe stuck with a probability of 80%.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-cl`clang-cl` driver. Don't use for other compiler parts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions