A foreign corporation shall receive the benefit of the deductions and credits allowed to it in this subtitle only by filing or causing to be filed with the Secretary a true and accurate return, in the manner prescribed in subtitle F, including therein all the information which the Secretary may deem necessary for the calculation of such deductions and credits. The preceding sentence shall not apply for purposes of the tax imposed by section
541 (relating to personal holding company tax), and shall not be construed to deny the credit provided by section
33 for tax withheld at source or the credit provided by section
34 for certain uses of gasoline.