Skip to content

Conversation

@Lastique
Copy link
Member

@Lastique Lastique commented Mar 1, 2020

gcc 4.8 appears to not support alignas specifier with a constant expression as an argument. This PR updates the test to detect this and increases gcc version to 4.9.

Lastique added 2 commits March 1, 2020 12:53
Some compilers (e.g. gcc 4.8) are known to require a literal constant in
alignas and not supporting a constant expression. The test was modified
to detect that.
gcc 4.8 is known to not support alignas with constant expressions.
@Lastique Lastique force-pushed the alignas_constexpr branch from d86b2be to c3f81f3 Compare March 1, 2020 14:08
Lastique added a commit to boostorg/atomic that referenced this pull request Mar 1, 2020
… expression

gcc 4.8 requires that the argument of alignas is a literal constant and does not
accept a constant expression.

This workaround is temporary, until Boost.Config updates BOOST_NO_CXX11_ALIGNAS:

boostorg/config#324
@jzmaddock jzmaddock merged commit 460c327 into boostorg:develop Mar 24, 2020
@Lastique Lastique deleted the alignas_constexpr branch March 24, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants