diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-26 11:36:39 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-26 11:36:39 +0000 |
commit | b67b23f00d2f9edcc05cc0339199860c2f35b864 (patch) | |
tree | ac3672768bc38861fad8e9821e68bf09342a3b9d /gcc | |
parent | e929e6115e278e8aa3f2df2d76dbd279f6c5195d (diff) | |
download | gcc-b67b23f00d2f9edcc05cc0339199860c2f35b864.zip gcc-b67b23f00d2f9edcc05cc0339199860c2f35b864.tar.gz gcc-b67b23f00d2f9edcc05cc0339199860c2f35b864.tar.bz2 |
* name-lookup.c (name_lookup::search_adl): ADL OMP UDR type args.
From-SVN: r248506
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8143e89..bd6fcde 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 5d5f98a..02ed39a 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -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; |