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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|incorrect alignas(void)     |[9/10/11/12 Regression]
                   |accepted (with warning if   |incorrect alignas(void)
                   |templated)                  |accepted (with warning if
                   |                            |templated)
      Known to fail|                            |12.0, 5.1.0
                 CC|                            |mpolacek at gcc dot gnu.org
      Known to work|                            |4.9.4

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Before GCC 5.1 the non-template case was rejected:

104944.C:1:22: error: requested alignment is not an integer constant
 struct alignas(void) S{};
                      ^

That changed with r210262:


Author: Marek Polacek
Date:   Fri May 9 09:24:37 2014

    re PR c/50459 (alignof doesn't work on plain old constant, works with
expressions containing it)

Reply via email to