Parliamentary privilege will protect the members if they disclose information as part of proceedings. There will be no legal consequences. Parliamentary privilege will not, however, protect any members if they disclose information outside of proceedings.
There will also be political considerations. If this bill is adopted and the members start disclosing classified information in the chamber, I suspect that the government will just stop sharing any information with members of Parliament.