OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [crash30.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
namespace N { template struct A { operator int() const; }; }
3
namespace M { template struct A {}; }
4
namespace P { typedef int I; }
5
 
6
template void foo()
7
{
8
  +typename N::A<0>();  // { dg-bogus "expected" }
9
}
10
 
11
template void bar()
12
{
13
  +typename M::A<0>;  // { dg-error "expected" }
14
}
15
 
16
template void baz() {
17
  typename P::I i;  // { dg-bogus "expected" }
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.