summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C
new file mode 100644
index 000000000..d4d560eed
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C
@@ -0,0 +1,15 @@
+// { dg-do assemble }
+
+// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
+// Copyright (C) 1999, 2000 Free Software Foundation
+
+class Q {
+ template<class T>
+ class X { // { dg-error "" } Q::X private
+ };
+};
+template<template<class> class XX>
+class Y {
+ XX<int> x_;
+};
+Y<Q::X> y; // { dg-error "" } instantiated from here