Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Fix compile error on clang #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

keichi
Copy link

@keichi keichi commented Nov 15, 2021

Hi, this fixes the following compile error on clang:

/Users/keichi/Projects/kEDM/src/thirdparty/simd/vector_size.hpp:149:12: error: an attribute list cannot appear here
  explicit SIMD_ALWAYS_INLINE inline simd(const native_type& value):m_value(value) {}
           ^~~~~~~~~~~~~~~~~~
/Users/keichi/Projects/kEDM/src/thirdparty/simd/simd_common.hpp:52:28: note: expanded from macro 'SIMD_ALWAYS_INLINE'
#define SIMD_ALWAYS_INLINE [[gnu::always_inline]]

According to the C++ specs, attributes need to be placed before the function specifiers (c.f. https://omegaup.com/docs/cpp/en/cpp/language/function.html#Function_definition)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant