OSDN Git Service

2012-10-04 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Oct 2012 23:48:16 +0000 (23:48 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Oct 2012 23:48:16 +0000 (23:48 +0000)
PR c++/52233
* g++.dg/cpp0x/alias-decl-23.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192109 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C [new file with mode: 0644]

index 734d046..b7f585d 100644 (file)
@@ -1,7 +1,12 @@
 2012-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       PR c++/52233
+       * g++.dg/cpp0x/alias-decl-23.C: New.
+
+2012-10-04  Paolo Carlini  <paolo.carlini@oracle.com>
+
        PR c++/53403
-       * g++.dg/template/friend53.C
+       * g++.dg/template/friend53.C: New.
 
 2012-10-04  Eric Botcazou  <ebotcazou@adacore.com>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C
new file mode 100644 (file)
index 0000000..0e4ba45
--- /dev/null
@@ -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;