I am a Catholic. I am a Mason. I have no feeling that what I do is morally or spiritually wrong.
However, the pope issued this statement when cardinal in 1983. It is the last official position of the church on the issue. Each Catholic may make his own choice according to his conscience and his determination as to his “Faithfulness”.
Here’s what then-Cardinal Ratzinger (actually as head of the Vatican’s CDF approved by Pope John Paul II)
has to say:
Declaration on Masonic Associations (Quaesitum est)
English Translation of a Latin Document from the Sacred Congregation for the Doctrine of the Faith November 26, 1983
It has been asked whether there has been any change in the Church’s decision in regard to Masonic associations since the new Code of Canon Law does not mention them expressly, unlike the previous code.
This sacred congregation is in a position to reply that this circumstance is due to an editorial criterion which was followed also in the case of other associations likewise unmentioned inasmuch as they are contained in wider categories.
Therefore, the Church’s negative judgment in regard to Masonic associations remains unchanged since their principles have always been considered irreconcilable with the doctrine of the Church and, therefore, membership in them remains forbidden. The faithful, who enroll in Masonic associations are in a state of grave sin and may not receive Holy Communion.
It is not within the competence of local ecclesiastical authorities to give a judgment on the nature of Masonic associations which would imply a derogation from what has been decided above, and this in line with the declaration of this sacred congregation issued Feb. 17,1981. 
In an audience granted to the undersigned cardinal prefect, the Supreme Pontiff John Paul II approved and ordered the publication of this declaration which had been decided in an ordinary meeting of this sacred congregation.
Rome, from the Office of the Sacred Congregation for the Doctrine of the Faith, Nov. 26, 1983
Cardinal Joseph Ratzinger, Prefect
Father Jerome Hamer, O.P. Titular Archbishop of Lorium, Secretary
1. Cf. AAS 73 (1981) pp. 240-241.