mirror of git://gcc.gnu.org/git/gcc.git
* name-lookup.c (name_lookup::search_adl): ADL OMP UDR type args.
From-SVN: r248506
This commit is contained in:
parent
e929e6115e
commit
b67b23f00d
|
|
@ -1,3 +1,7 @@
|
|||
2017-05-26 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* name-lookup.c (name_lookup::search_adl): ADL OMP UDR type args.
|
||||
|
||||
2017-05-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* cp-tree.h (struct lang_decl_decomp): New type.
|
||||
|
|
|
|||
|
|
@ -998,9 +998,11 @@ name_lookup::search_adl (tree fns, vec<tree, va_gc> *args)
|
|||
tree arg;
|
||||
|
||||
FOR_EACH_VEC_ELT_REVERSE (*args, ix, arg)
|
||||
/* OMP reduction operators put a type as the first arg. I don't
|
||||
suppose we should ADL on that? */
|
||||
if (!TYPE_P (arg))
|
||||
/* OMP reduction operators put an ADL-significant type as the
|
||||
first arg. */
|
||||
if (TYPE_P (arg))
|
||||
adl_type (arg);
|
||||
else
|
||||
adl_expr (arg);
|
||||
|
||||
delete fn_set;
|
||||
|
|
|
|||
Loading…
Reference in New Issue