Fix Issue 8269 - The 'with statement' does not observe temporary object lifetime
Merge pull request #3855 from yebblies/issue8269

Issue 8269 - The 'with statement' does not observe temporary object lifetime