diff mbox

[C++] using directive

Message ID 7e00e96d-41c7-69e9-2dfc-aded595e0c52@acm.org
State New
Headers show

Commit Message

Nathan Sidwell May 31, 2017, 4:39 p.m. UTC
I've committed this new testcase, from the modules branch.  Something 
that got fixed in the name-lookup change.

nathan
diff mbox

Patch

2017-05-31  Nathan Sidwell  <nathan@acm.org>

	* g++.dg/lookup/lambda1.C New.
Index: testsuite/g++.dg/lookup/lambda1.C
===================================================================
--- testsuite/g++.dg/lookup/lambda1.C	(revision 0)
+++ testsuite/g++.dg/lookup/lambda1.C	(working copy)
@@ -0,0 +1,13 @@ 
+// { dg-do compile { target c++11 } }
+
+namespace std
+{
+  typedef int I;
+}
+
+void foo ()
+{
+  using namespace std;
+
+  auto l = [] (I) {};
+}