[PATCH] D61458: [hip] Relax CUDA call restriction within `decltype` context.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 2 14:02:34 PDT 2019


tra added a comment.

In D61458#1488550 <https://reviews.llvm.org/D61458#1488550>, @hliao wrote:

> In D61458#1488523 <https://reviews.llvm.org/D61458#1488523>, @tra wrote:
>
> > Perhaps we should allow this in all unevaluated contexts? 
> >  I.e. `int s = sizeof(foo(x));` should also work.
>
>
> good point, do we have a dedicated context for sizeof? that make the checking easier.


Sema::isUnevaluatedContext()  may be able to do the job.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61458/new/

https://reviews.llvm.org/D61458





More information about the cfe-commits mailing list