aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-05-16 16:56:08 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-05-16 16:56:08 +0000
commit45f9820f0075149dcbbe71eac97bf31993e9f9df (patch)
treebf9d4dea895d5a38637db5088c59954ca12b9b89 /gcc
parent7e9a3abbb8c97bb1bdc79f94f66545997802ac5d (diff)
downloadgcc-45f9820f0075149dcbbe71eac97bf31993e9f9df.zip
gcc-45f9820f0075149dcbbe71eac97bf31993e9f9df.tar.gz
gcc-45f9820f0075149dcbbe71eac97bf31993e9f9df.tar.bz2
re PR c++/17410 (Specialization of nested template rejected because of unrelated declaration)
2013-05-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/17410 * g++.dg/template/pr17410.C: New. From-SVN: r198979
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/pr17410.C17
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4e7a01f..c454367 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-16 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/17410
+ * g++.dg/template/pr17410.C: New.
+
2013-05-16 Jakub Jelinek <jakub@redhat.com>
* gcc.target/i386/rotate-3.c: New test.
diff --git a/gcc/testsuite/g++.dg/template/pr17410.C b/gcc/testsuite/g++.dg/template/pr17410.C
new file mode 100644
index 0000000..8be9588
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/pr17410.C
@@ -0,0 +1,17 @@
+// PR c++/17410
+
+template <class>
+struct Outer {
+ template <class> struct Inner {};
+};
+
+template <class T>
+struct A;
+
+template <template <class> class Q, class P>
+struct A <Q<P> > {};
+
+template <class T> struct UNRELATED;
+template <class T> struct UNRELATED<Outer<void>::Inner<T*> >;
+
+template struct A<Outer<void>::Inner<int*> >;