Can your information security be compromised by opening attachments in Gmail in iOS?
Theoreticly there's always a certain risk since no system is 100% secure. But given the measures Apple took/takes to make iOS as secure as possible that risk is kept rather low. Currently there is no known security hole regarding what you describe.