blob: 262c1c7df7901c314c811af4f4fc713a4a3e242f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Build don't link:
// crash test -
// 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; // ERROR - invalid base type
};
int main() {
X<int> x; // ERROR - instantiated
}
|