https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123850
--- Comment #3 from YunQiang Su <syq at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> The bug is only inside main there are dups.
Yes, or not.
```
int f() {
std::vector<char> v = {1, 2, 3, 4, 5};
v.resize(49);
// no return: this will emit another warning/error.
}
```
also emit this warning;
