Skip to content

__builtin_verbose_trap with empty string arguments should be treated as an error #165981

@delcypher

Description

@delcypher

Clang currently accepts this:

void test(void) {
    __builtin_verbose_trap("","");
}

Clang's sema should not accept this as it doesn't make any sense to have both the category and message parameters be empty.

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions