Skip to content

Many routine tests use an invalid reduction operator: #111

@erichkeane

Description

@erichkeane

The following tests:

routine_bind.c
routine_bind.cpp
routine_bind_nonprototype_function_nonstring_function.cpp
routine_bind_nonprototype_function_nonstring_lambda.cpp
routine_bind_nonprototype_function_string_function.cpp
routine_bind_nonprototype_function_string_lambda.cpp
routine_bind_nonprototype_lambda_nonstring_function.cpp
routine_bind_nonprototype_lambda_nonstring_lambda.cpp
routine_bind_nonprototype_lambda_string_function.cpp
routine_bind_nonprototype_lambda_string_lambda.cpp
routine_bind_prototype_function_nonstring_function.cpp
routine_bind_prototype_function_nonstring_lambda.cpp
routine_bind_prototype_function_string_function.cpp
routine_bind_prototype_function_string_lambda.cpp
routine_bind_prototype_lambda_nonstring_function.cpp
routine_bind_prototype_lambda_nonstring_lambda.cpp
routine_bind_prototype_lambda_string_function.cpp
routine_bind_prototype_lambda_string_lambda.cpp

All use a - reduction operator. However 2.5.15 (in OpenACC3.3) lists the valid operators in C/C++ which are:
+, *, max, min, &, |, ^, &&, and ||.

Clang currently diagnoses this, so many failures when running the test suite are encountered.

It isn't clear to me @ajarmusch what is intended in these tests, but it would be lovely if we could solve these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions