aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/derived3.C
blob: 24d2c0d720a7acec4a6bafc699ebc5b47c9ae83b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }

// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
// Copyright (C) 1999, 2002 Free Software Foundation

template<class T>
class X {
	class Y : public T {};
	Y y;			// { dg-error "" } invalid base type
};
int main() {
	X<int> x;		// { dg-error "" } instantiated
}