[PATCH] D21989: [OpenCL] Improve diagnostics of OpenCL types

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 12 09:55:25 PDT 2016

Anastasia added a comment.

Wondering if we should add similar restrictions for other OpenCL types incl events or queues?

Also I am guessing that the following

  pipe int (*p)

should be parsed as pointer to pipe and not a pointer to a pipe element type (by analogy to function pointers or other similar declarations).

This isn't legal code I believe but the diagnostic currently doesn't seem right:

  error: pipes packet types cannot be of reference type


More information about the cfe-commits mailing list