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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.0

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Tracking the rest from PR65690:
/* PR c++/65715 */
/* { dg-do run } */

typedef double T[4][4] __attribute__((aligned (2 * __alignof__ (double))));
void foo (const T);
struct S { T s; };

int
main ()
{
  if (__alignof__ (const T) != 2 * __alignof__ (double))
    __builtin_abort ();
  return 0;
}

#if defined(__cplusplus) && __cplusplus >= 201103L
static_assert (alignof (const T) == 2 * alignof (double), "alignment of const
T");
#endif

Reply via email to