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

Jonas Hahnfeld <hahnjo at hahnjo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hahnjo at hahnjo dot de

--- Comment #6 from Jonas Hahnfeld <hahnjo at hahnjo dot de> ---
Still there in 10.2.0:

 $ cat alignas-multiple.cpp 
struct alignas(4) alignas(8) A { };
struct alignas(8) alignas(4) B { };

static_assert(alignof(A) == 8, "should have strictest alignment");
static_assert(alignof(B) == 8, "should have strictest alignment");
 $ g++ -c alignas-multiple.cpp 
alignas-multiple.cpp:5:26: error: static assertion failed: should have
strictest alignment
    5 | static_assert(alignof(B) == 8, "should have strictest alignment");
      |               ~~~~~~~~~~~^~~~
 $ clang++ -c alignas-multiple.cpp
 $ echo $?
0

Reply via email to