From 0e37bebaee10f5958ea09e42dd61e4f228c0d1eb Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Thu, 18 Apr 2019 15:34:03 +0000 Subject: [PATCH] [Sema][NFC] Mark DR705 (Suppressing argument-dependent lookup via parentheses) as done It was supported since at least clang 3 so just mark it as done. llvm-svn: 358678 --- clang/test/CXX/drs/dr7xx.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/clang/test/CXX/drs/dr7xx.cpp b/clang/test/CXX/drs/dr7xx.cpp index d02582b..2760bda 100644 --- a/clang/test/CXX/drs/dr7xx.cpp +++ b/clang/test/CXX/drs/dr7xx.cpp @@ -3,6 +3,19 @@ // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors // RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors +namespace dr705 { // dr705: yes + namespace N { + struct S {}; + void f(S); // expected-note {{declared here}} + } + + void g() { + N::S s; + f(s); // ok + (f)(s); // expected-error {{use of undeclared}} + } +} + namespace dr727 { // dr727: partial struct A { template struct C; // expected-note 6{{here}} -- 2.7.4