[Sema][NFC] Mark DR705 (Suppressing argument-dependent lookup via parentheses) as...
authorBruno Ricci <riccibrun@gmail.com>
Thu, 18 Apr 2019 15:34:03 +0000 (15:34 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Thu, 18 Apr 2019 15:34:03 +0000 (15:34 +0000)
It was supported since at least clang 3 so just mark it as done.

llvm-svn: 358678

clang/test/CXX/drs/dr7xx.cpp

index d02582b..2760bda 100644 (file)
@@ -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<typename T> struct C; // expected-note 6{{here}}