Skip to content

Clang unexpectedly crashing #129241

@shvrma

Description

@shvrma

The project attempted to compile are there. Version of Clang: the latest one from the Arch Linux repo, 19.1.7-1. It seems to be a frontend bug as determined by instructions in the Submitting Bug Report guide. Clang complains about inability to produce code for std::__do_visit for variant visitation. Latest g++ refuses to compile the code, complaining about an invalid template parameter, which in turn defines some method with such. Latest MSVC compiles the given code and it seems to run.

As asked, additional files attached, but the problem seems reproducible at least across my PC's: tmp.zip.

P. S. Originally issue was seen on this specific commit. Have made a reduced version there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++clang:modulesC++20 modules and Clang Header ModulescrashPrefer [crash-on-valid] or [crash-on-invalid]libstdc++GNU libstdc++ C++ standard libraryneeds-reductionLarge reproducer that should be reduced into a simpler form

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions