URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash30.C] - Rev 12
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" }
}