Patchwork [C++,testcase] PR 52233

login
register
mail settings
Submitter Paolo Carlini
Date Oct. 4, 2012, 11:52 p.m.
Message ID <506E2125.6090309@oracle.com>
Download mbox | patch
Permalink /patch/189367/
State New
Headers show

Comments

Paolo Carlini - Oct. 4, 2012, 11:52 p.m.
Hi,

I'm adding the testcase and closing the PR. Tested x86_64-linux.

Thanks,
Paolo.

////////////////////////
2012-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52233
	* g++.dg/cpp0x/alias-decl-23.C: New.

Patch

Index: g++.dg/cpp0x/alias-decl-23.C
===================================================================
--- g++.dg/cpp0x/alias-decl-23.C	(revision 0)
+++ g++.dg/cpp0x/alias-decl-23.C	(working copy)
@@ -0,0 +1,17 @@ 
+// PR c++/52233
+// { dg-do compile { target c++11 } }
+
+template <typename t>
+struct foo
+{
+  template <template <typename...> class... xs>
+  using type = int;
+};
+
+template <typename t, template <typename...> class... xs>
+struct bar
+{
+  using type = typename foo<t>::template type<xs...>;
+};
+
+bar<int, foo> x;