Skip to content

#embed crashes when used in a compound literal #102248

@zygoloid

Description

@zygoloid

This valid C23 source file:

char *p = (char[]){
#embed "/usr/bin/true"
};

crashes clang somewhere in InitListChecker::HandleEmbed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions