OpenCores
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/] [template/] [error15.C] - Blame information for rev 301

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 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.