Skip to content

clang-tidy: bugprone-unchecked-optional-access regression (hang) from 15.0.7 to 16.0.6 #69298

Open
@Dushistov

Description

@Dushistov

test.zip

With attached file if you run (with clang/llvm 15.0.7):

for i in $(seq 1 10); do clang-tidy test.cpp -checks='-*,bugprone-unchecked-optional-access'  -- --std=c++17; done

all works fine.

But with clang/llvm 16.0.6

it hangs on time from 2 minutes to more then several hours.

And it happens randomly, some times run takes several seconds, some times minutes or hours.
On my machine, running the clang-tidy (16.0.6) 10 times results in a 100% hang.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyhangCompiler hang (infinite loop)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions