Legally separated with agreement to file joint return
I have a couple who are legally separated. The attorney put a clause in the separation agreement that they would continue to file a joint return. Based on research it appears that the code and regulations state clearly that if you are legally separated you cannot file a joint return. I am not sure if this can be overcome by a written agreement. I could not find any letter ruling court case that addresses this issue directly. Has anyone encountered this?
