This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Reject virtual functions for OpenCL C++
ClosedPublic

Authored by svenvh on Apr 20 2018, 4:40 AM.

Details

Summary

The OpenCL C++ specification doesn't mention restricting virtual inheritance, so leaving that unaffected for now.

Diff Detail

Event Timeline

svenvh created this revision.Apr 20 2018, 4:40 AM
yaxunl added inline comments.Apr 20 2018, 7:56 AM
test/Parser/opencl-cxx-virtual.cl
2

can you add a test for template class with virtual member?

svenvh updated this revision to Diff 143330.Apr 20 2018, 9:33 AM

Added a template class test as requested.

yaxunl accepted this revision.Apr 20 2018, 10:06 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Apr 20 2018, 10:06 AM
This revision was automatically updated to reflect the committed changes.