https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113984

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|-Wfree-nonheap-object false |-Wfree-nonheap-object false
                   |positive with VLA parameter |positive with VLA parameter
                   |that is a derefenced        |that has a size which is
                   |                            |not a simple decl

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another testcase:
```
struct a
{
  int n;
};
const char **
add_string(struct a n, const char *strings[restrict n.n])
{
  strings = __builtin_realloc(strings, n.n);
  if (!strings)
    return 0;
  return strings;
}
```

Reply via email to