Should issue warning on returning pointer to local variable
Open
Frontend / Parser
Good First Issue
Quality of Life
- Dominant language
- C++
- Stars
- 3k
- Forks
- 352
- PR merge metrics
- No merged PRs in 30d
Description
It'd be nice to issue a warning given malformed code like this:
```
int *foo() {
int x;
return &x;
}
```
Contributor guide
Assessment
This issue has not been assessed yet.