You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile successfully for any compilers supporting c++17.
Actual Behavior
G++ 8.5 gave me an error error: expected unqualified-id before '[' token
Steps to Reproduce the Problem
Just compile it with G++ 8.5.
Specifications
HPX Version: the master branch ad3ac76e159692355d4715f8b275c0a062b859af
Platform (compiler, OS): G++ 8.5. This should apply to any version prior to g++9.3.
Comment
This is not a fault of HPX, but G++, but this ticket can at least serve as an explanation for future users encountering this error. This is caused by a bug in G++ prior to 9.3. G++ doesn't parse correctly the [[maybe_unused]] attribute for the constructor's first argument. However, HPX uses it in libs/core/executors/include/hpx/executors/service_executors.hpp line 49.
Do we look into replacing maybe_unused with a #define, possibly something like HPX_UNUSED which falls back to attribute((unused)) for older GCC versions?
Expected Behavior
Compile successfully for any compilers supporting c++17.
Actual Behavior
G++ 8.5 gave me an error
error: expected unqualified-id before '[' token
Steps to Reproduce the Problem
Just compile it with G++ 8.5.
Specifications
ad3ac76e159692355d4715f8b275c0a062b859af
Comment
This is not a fault of HPX, but G++, but this ticket can at least serve as an explanation for future users encountering this error. This is caused by a bug in G++ prior to 9.3. G++ doesn't parse correctly the
[[maybe_unused]]
attribute for the constructor's first argument. However, HPX uses it inlibs/core/executors/include/hpx/executors/service_executors.hpp
line 49.Reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81429.
The text was updated successfully, but these errors were encountered: