URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [crash38.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Mark Mitchell <mark@codesourcery.com>
template <class T>
struct S {
typedef typename T::Y<T>::Z X; // { dg-error "non-template" "non-template" } No Y in A
// { dg-message "note" "note" { target *-*-* } 6 }
// { dg-error "does not declare" "not declare" { target *-*-* } 6 }
X x; // { dg-error "does not name a type" } No Y in A
};
struct A {
struct Y {
typedef A Z;
};
};
template struct S<A>;
Go to most recent revision | Compare with Previous | Blame | View Log