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

--- Comment #2 from Paul Jackson <mailnew4ster at gmail dot com> ---
I tried to work around the problem, and it's even worse than I expected. You
can replace dll.cc with the following and observe the same crash.

That means that even if I want to do manual memory management with raw
pointers, I can't. Please, consider fixing at least this.

```
#include <vector>

struct {
    std::vector<int> v;
} *test;

void x()
{
    if (test) {
        test->v.push_back(2);
    }
}
```

Reply via email to