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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [error15.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++/16929
2
 
3
template 
4
class A {
5
  int x;
6
};
7
 
8
template 
9
class B {
10
protected:
11
 
12
  A a; // { dg-error "" }
13
 
14
  void f(const A * a1 = &a); // { dg-error "this location" }
15
 
16
  void g(void);
17
};
18
 
19
template 
20
void B::g(void) {
21
  f(); // { dg-error "default argument" }
22
}
23
 
24
template class B;

powered by: WebSVN 2.1.0

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