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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [pr11159.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/11159 : erroneous warning in copy ctor with virtual inheritance
2
// { dg-do compile }
3
// { dg-options "-Wall -Wextra" }
4
struct A
5
{
6
  A ();
7
};
8
 
9
struct B : virtual A
10
{
11
  B ();
12
};
13
 
14
struct C : virtual A
15
{
16
  C ();
17
};
18
 
19
struct D : B, C
20
{
21
  D (D const&){}
22
};
23
 
24
template 
25
struct E : Base
26
{
27
  E ();
28
 
29
  E (E const &)
30
    : Base ()
31
  {
32
  };
33
};
34
 
35
E foo;
36
E bar (foo);
37
 

powered by: WebSVN 2.1.0

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