[Clang] __builtin_memset should be constexpr
Open
clang:frontend
constexpr
enhancement
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
`__builtin_memset` currently isn't `constexpr`, but could be AFAICT. There doesn't seem to be a good reason to not allow at least single byte integral types.
Contributor guide
Research direction
Start by investigating Clang's handling of __builtin_memset and how constexpr evaluation treats it. The issue proposes allowing constexpr use for at least single-byte integral types; done means that supported use is accepted without breaking existing compiler behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100