On Wed, Jan 13, 2016 at 02:29:21PM -0800, Cesar Philippidis wrote:
> --- a/gcc/gimplify.c
> +++ b/gcc/gimplify.c
> @@ -5994,6 +5994,11 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx,
> tree decl, unsigned flags)
> {
> const char *rkind;
> bool on_device = false;
> + tree type = TREE_TYPE (decl);
> +
> + if (TREE_CODE (type) == REFERENCE_TYPE
> + || POINTER_TYPE_P (type))
I think this should be just POINTER_TYPE_P--this macro checks for
REFERENCE_TYPE as well.
Marek
