https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82210

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |3.4.6
           Keywords|                            |ABI, wrong-code
   Last reconfirmed|                            |2017-09-14
     Ever confirmed|0                           |1
            Summary|Having _Alignas in a struct |[5/6/7/8 Regression] Having
                   |with VLAs causes writing to |_Alignas in a struct with
                   |one array to overwrite      |VLAs causes writing to one
                   |another                     |array to overwrite another
   Target Milestone|---                         |5.5
      Known to fail|                            |4.0.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Same with __attribute__((aligned(16))).  Indeed works ok with using 15 instead
of size.

Got broken by tree-ssa somehow (3.4.6 works, 4.0.0 fails).

clang complains:

t.c:7:9: error: fields must have a constant size: 'variable length array in
      structure' extension will never be supported
      } a[size];
        ^

so this is a GCC extension it seems.

Reply via email to