greggman7
- Karma
- 41
- Created
- January 4, 2024 (2y ago)
- Submissions
- 0
-
Debugging some 3rd party library I ran into a "reference a stack object that no longer exists" error. repo #include <iostream> int* f() { int x = 4; int* xp = &x; return xp; } int main() { int* p = f(); std::cout << *p;…