URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [derived3.C] - Rev 199
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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-error "instantiated" "" }
};
int main() {
X<int> x; // { dg-error "instantiated" "" }
}
Go to most recent revision | Compare with Previous | Blame | View Log