ispc / ispc/ispc

Should issue warning on returning pointer to local variable

Open
#136 1 comment 0 reactions 0 assignees View on GitHub
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

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.