[llvm-bugs] [Bug 47601] New: Non-reserved names in pstl/execution_impl.h

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 21 09:04:24 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47601

            Bug ID: 47601
           Summary: Non-reserved names in pstl/execution_impl.h
           Product: parallel STL
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: New
          Assignee: ldionne at apple.com
          Reporter: zilla at kayari.org
                CC: llvm-bugs at lists.llvm.org

The members of __internal::__policy_traits aren't using reserved names:

template <>
struct __policy_traits<sequenced_policy>
{
    typedef std::false_type allow_parallel;
    typedef std::false_type allow_unsequenced;
    typedef std::false_type allow_vector;
};

This means the alias templates following it are broken:

template <typename _ExecutionPolicy>
using __collector_t =
    typename __internal::__policy_traits<typename
std::decay<_ExecutionPolicy>::type>::__collector_type;


This is invalid, because __collector_type doesn't exist, the member is really
called collector_type (although it shouldn't be).

And later in that file:

template <typename policy, typename... _IteratorTypes>
struct __prefer_unsequenced_tag

and

template <typename policy, typename... _IteratorTypes>
struct __prefer_parallel_tag

These use "policy" which is not a reserved name either.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200921/087e4140/attachment-0001.html>


More information about the llvm-bugs mailing list