Skip to content

CUDA 12.1, 12.2, 12.3, 12.4 constexpr issues, FIXED in CUDA 12.5 #1766

Description

@havogt

CUDA 12.1 and CUDA 12.2 seem to have (once again) problems with constexpr construction.

E.g. the following was fine in 12.0, but fails to compile now:

template <class T>
struct foo {
    T m;
    constexpr foo(T const &a) : m(a) {}
};
int main() {
    auto f = foo([]{});
}

where foo can be std::tuple.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions