楼上全错,因为这件事已经发生,所以该用过去完成式.
Thank you for doing something...是正确的语法
Thank you for allowing me to have loved you.