aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/derived3.C
blob: 41e03b2cf0758eb2e46befb38cf20ebad2b506dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do compile  }

// 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	// { dg-error "base type .* fails to be" }
	{
	};
	Y y;			// { dg-message "required" }
};
int main() {
	X<int> x;		// { dg-message "required" }
}