W3004 Safety Warnings

Safety

pointer may reference memory from a scope that has ended; assigning addr() of an inner-scope variable to an outer-scope pointer

When this occurs

This error is triggered when: pointer may reference memory from a scope that has ended; assigning addr() of an inner-scope variable to an outer-scope pointer

Example error message

warning[W3004]: pointer may reference memory from a scope that has ended; assigning addr() of an inner-scope variable to an outer-scope pointer

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.