Skip to content

discrepancy between clang and nvcc regarding std::is_invocable_v #69956

Closed
@yxsamliu

Description

@yxsamliu

https://godbolt.org/z/3cP5v4cbd

Basically, nvcc does not check availability by host/device attributes in std::is_invocable_v but clang does. This makes std::is_invocable_v returns false for a host function in a kernel for clang but not for nvcc.

Open this issue to discuss whether this should be treated as a clang bug.

@Artem-B

Metadata

Metadata

Assignees

No one assigned

    Labels

    clangClang issues not falling into any other categoryclang:codegenIR generation bugs: mangling, exceptions, etc.clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'clang:frontendLanguage frontend issues, e.g. anything involving "Sema"cuda

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions