https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121169
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- See https://forums.developer.nvidia.com/t/using-deviceptr-with-structs/136334 also. >member variables of structs Those not member variables but rather member fields and the only variables in your case is t, t.data is NOT a variable but rather an expression which access the data field of the t variable.
