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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [using14.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++/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 "member" }
14
  }
15
};
16
 
17
int main()
18
{
19
  C c;
20
  c.f();                        // { dg-message "required" }
21
}

powered by: WebSVN 2.1.0

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