reconstructible: Fix alignas specifier placement.

Alignas should be placed before the type. Placing it after it works for
GCC, but fails when building the same codee with clang. The error
message is:

reconstructible.h:48:27: error: 'alignas' attribute cannot be applied to types
    char _space[sizeof(MT)] alignas(sizeof(addr_t));
                            ^
Issue #4298
This commit is contained in:
Piotr Tworek 2021-10-14 22:10:26 +02:00 committed by Christian Helmuth
parent 42ff902576
commit e748efacd8

View File

@ -45,7 +45,7 @@ Genode::Reconstructible : Noncopyable
/**
* Static reservation of memory for the embedded object
*/
char _space[sizeof(MT)] alignas(sizeof(addr_t));
alignas(sizeof(addr_t)) char _space[sizeof(MT)];
/**
* True if the volatile object contains a constructed object