From fae48cfc1b4cbd011d671aa0a6d82d50fb882852 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358678 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CXX/drs/dr7xx.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/CXX/drs/dr7xx.cpp b/test/CXX/drs/dr7xx.cpp index d02582b5b4..2760bdad0f 100644 --- a/test/CXX/drs/dr7xx.cpp +++ b/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.40.0