https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87942
--- Comment #4 from Alexander Monakov <amonakov at gcc dot gnu.org> --- (In reply to Johannes Vetter from comment #3) > My problem now: in how many other cases is the same behavior? I cannot check > every global variable/struct by hand. I recommend to open a new bugreport for this aspect (diagnostics enhancement). There's -Wpacked-not-aligned now, but it doesn't capture this specific issue. Why was it necessary to use a packed struct for device memory at all?