Skip to content

Conversation

@elizabethandrews
Copy link
Contributor

@elizabethandrews elizabethandrews commented Apr 5, 2023

Type printer for specialization_id in SemaSYCL did not
correctly handle class template specializations. The
template parameters were omitted in generated shim
functions i.e. for the following code,

namespace {
namespace inner {
template
struct S3 {
static constexpr sycl::specialization_id a{Val};
};
}
}
template class inner::S3<10>;

inner::S3::a was generated in shim functions instead of
inner::S3<10>::a. This patch fixes this error

Type printer for specialization_id in SemaSYCL did not
correctly handle class template specializations. The
template parameters were omitted in generated shim
functions i.e. for the following code,

namespace {
  namespace inner {
    template <int Val>
    struct S3 {
      static constexpr sycl::specialization_id a{Val};
    };
  }
}

inner::S3::a was generated in shim functions instead of
inner::S3<10>::a. This patch fixes this error
@elizabethandrews elizabethandrews requested a review from a team as a code owner April 5, 2023 18:20
@elizabethandrews elizabethandrews temporarily deployed to aws April 5, 2023 19:27 — with GitHub Actions Inactive
@elizabethandrews elizabethandrews temporarily deployed to aws April 5, 2023 20:42 — with GitHub Actions Inactive
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elizabethandrews
Copy link
Contributor Author

@intel/llvm-gatekeepers PR is ready for merge

@AlexeySachkov AlexeySachkov merged commit dd96dfa into intel:sycl Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants