[Bug c/81656] incompatible _Alignas silently accepted

2017-08-02 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81656

Martin Sebor  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=81566

--- Comment #2 from Martin Sebor  ---
See also bug 81566 for a related problem with attribute aligned on function
declarations.

[Bug c/81656] incompatible _Alignas silently accepted

2017-08-01 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81656

--- Comment #1 from joseph at codesourcery dot com  ---
To be clear: that requirement is not a constraint, so no diagnostic is 
required.  Diagnosis may make sense for _Alignas, but I don't think 
different choices of __attribute__ ((aligned)) should be diagnosed, as a 
matter of compatibility with existing code.