-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL] Report deferred diagnostics in function templates #5114
Conversation
I have marked this "draft" because I am not really sure if there is a better way to handle this. Please take a look and offer suggestions for a different approach if you think of any. |
d62a761
to
64b7a0f
Compare
Sorry for the forced update. Branches were out of sync. |
I am looking at the failing test. |
Under some circumstances, deferred diagnostics were not emitted for usages within a template function. This was because the FunctionDecl associated with the diagnostic was that of the template declaration, but at the point of emitting the diagnostic, the FunctionDecl in the call chain was that of the template instantiation. Signed-off-by: Premanand M Rao <premanand.m.rao@intel.com>
64b7a0f
to
4965d65
Compare
I had to rebase. There were some interactions between PR #5195 and this one. I have resolved one test which had a FIXME in it. |
@Fznamznon, @elizabethandrews, @smanna12, this is ready for a review, whenever you get a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a couple of minors. Why don't you make it as "ready for review" BTW?
Duh! Thanks. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a NIT, otherwise LGTM.
Thanks @smanna12 |
Thanks @Fznamznon for the approval as well as the thorough review. |
Under some circumstances, deferred diagnostics were not
emitted for usages within a template function. This was
because the FunctionDecl associated with the diagnostic
was that of the template declaration, but at the point of
emitting the diagnostic, the FunctionDecl in the call chain
was that of the template instantiation.
Signed-off-by: Premanand M Rao premanand.m.rao@intel.com