Add context information to duplicate definition warning