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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error36.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/15946
2
// Test for helpful error message about missing typename.
3
 
4
template  struct A
5
{
6
  struct B { };
7
  static B b;
8
};
9
 
10
template 
11
void f(T t)
12
{
13
  typedef A::foo type;  // { dg-error "typename" }
14
  A::bar b;                     // { dg-error "typename" }
15
} // { dg-error "expected ';'" "" { target *-*-* } 14 }
16
 
17
// PR c++/36353
18
template  struct B
19
{
20
  void f()
21
  {
22
    A::baz z;           // { dg-error "typename" }
23
  } // { dg-error "expected ';'" "" { target *-*-* } 22 }
24
};
25
 
26
// PR c++/40738
27
template 
28
void g(const A::type &t);  // { dg-error "typename" }
29
// { dg-error "no type" "" { target *-*-* } 28 }
30
 
31
// PR c++/18451
32
template  A::B A::b; // { dg-error "typename" }

powered by: WebSVN 2.1.0

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