summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C
blob: d4d560eedd4ad8cbd26e22d7798767b1822dc19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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