[Bug middle-end/20794] [4.0/4.1 Regression] Arrays and pointer arithmetic on __attribute ((aligned)) types permitted

mmitchel at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Apr 17 17:06:00 GMT 2005


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-04-17 17:06 -------
Joseph, RTH, and I all feel this should be invalid code.  I think that's
consensus.  So, I've updated the PR.  Patches to actually issue a diagnostic
would be welcome.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |accepts-invalid
            Summary|[4.0/4.1 Regression]        |[4.0/4.1 Regression] Arrays
                   |Miscompilation with         |and pointer arithmetic on
                   |__attribute ((aligned))     |__attribute ((aligned))
                   |                            |types permitted


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20794



More information about the Gcc-bugs mailing list