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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [using14.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/26102
2
 
3
template  struct B1 { int i(); };
4
 
5
struct B2 { int i(); };
6
 
7
template  struct C : public B1, public B2
8
{
9
  using B2::i;
10
  void f()
11
  {
12
    i();                        // should be accepted
13
    i.i();                      // { dg-error "" }
14
  }
15
};
16
 
17
int main()
18
{
19
  C c;
20
  c.f();                        // { dg-error "instantiated" }
21
}

powered by: WebSVN 2.1.0

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