URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash30.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
namespace N { template<int> struct A { operator int() const; }; }
namespace M { template<int> struct A {}; }
namespace P { typedef int I; }
template<typename> void foo()
{
+typename N::A<0>(); // { dg-bogus "expected" }
}
template<typename> void bar()
{
+typename M::A<0>; // { dg-error "expected" }
}
template<typename T> void baz() {
typename P::I i; // { dg-bogus "expected" }
}
Go to most recent revision | Compare with Previous | Blame | View Log