llvm / llvm/llvm-project

__builtin_verbose_trap with empty string arguments should be treated as an error

Open
#165,981 1 comment 0 reactions 1 assignee Claimed by @delcypher View on GitHub
clang:frontend
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.