Skip to content

Compile error: "Declaration of 'View' shadows template parameter" #2

@ghost

Description

In file included from /opt/cilkplus/clang/include/cilk/reducer_list.h:47:
/opt/cilkplus/clang/include/cilk/reducer.h:714:24: error: declaration of 'View' shadows template parameter
    template <typename View, bool ViewDoesDefineReturnTypeForGetValue>
                       ^
/opt/cilkplus/clang/include/cilk/reducer.h:685:36: note: template parameter is declared here
template <typename Value, typename View>
                                   ^
/opt/cilkplus/clang/include/cilk/reducer.h:719:24: error: declaration of 'View' shadows template parameter
    template <typename View>
                       ^
/opt/cilkplus/clang/include/cilk/reducer.h:685:36: note: template parameter is declared here
template <typename Value, typename View>
                                   ^
2 errors generated.
ninja: build stopped: subcommand failed.

Getting this error just by including reducer_list header file:

#include <cilk/reducer_list.h>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions