Skip to content

[clang][StaticAnalyzer] Crash when analyzing code importing C++20 modules built with coverage flags #179620

@mrwsl

Description

@mrwsl

The Clang static analyzer crashes when analyzing code that imports C++20 modules built with coverage instrumentation flags (-fprofile-instr-generate -fcoverage-mapping).

Environment:

  • Clang version: 21.1.6 (could also reproduce with Ubuntu clang version 21.1.8)
  • OS: Linux
  • Standard: C++26 (also reproducible with C++23)

There is a minimal reproducer attached.

minimal-standalone.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions