This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Check if the template specialization is mappable instead of specialized template
ClosedPublic

Authored by davidsh on Oct 4 2016, 2:22 PM.

Details

Summary

Clang segfaults on this case instead of diagnosing because it looks at the specialized template:
template <class T>
struct MyClass;

template<>
struct MyClass<int>
{
virtual void foo() {}
};

int main() {

MyClass<int> m;
#pragma omp target map(m)
{}

}

Diff Detail

Event Timeline

davidsh updated this revision to Diff 73552.Oct 4 2016, 2:22 PM
davidsh retitled this revision from to [OpenMP] Check if the template specialization is mappable instead of specialized template.
davidsh updated this object.
davidsh added a subscriber: cfe-commits.
ABataev accepted this revision.Oct 5 2016, 6:31 AM
ABataev edited edge metadata.

LG

This revision is now accepted and ready to land.Oct 5 2016, 6:31 AM
davidsh closed this revision.Oct 6 2016, 10:17 AM