URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error36.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/15946
// Test for helpful error message about missing typename.
template <class T> struct A
{
struct B { };
static B b;
};
template <class T>
void f(T t)
{
typedef A<T>::foo type; // { dg-error "typename" }
A<T>::bar b; // { dg-error "typename" }
} // { dg-error "expected ';'" "" { target *-*-* } 14 }
// PR c++/36353
template <class T> struct B
{
void f()
{
A<T>::baz z; // { dg-error "typename" }
} // { dg-error "expected ';'" "" { target *-*-* } 22 }
};
// PR c++/40738
template <class T>
void g(const A<T>::type &t); // { dg-error "typename" }
// { dg-error "no type" "" { target *-*-* } 28 }
// PR c++/18451
template <class T> A<T>::B A<T>::b; // { dg-error "typename" }
// { dg-error "expected" "" { target *-*-* } 32 }
Go to most recent revision | Compare with Previous | Blame | View Log