[Bug c++/64270] packed fields
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 17 05:36:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64270
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually this is invalid and here is the reason why:
a packed reference is not going to bind to a reference by design. It is a copy
of the array at this point. If you change from an array to a scalar it will
also do the same behavior.
More information about the Gcc-bugs
mailing list