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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit8.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// The hack for PR c++/44909 breaks this testcase.  We need feedback
2
// from the C++ committee to know how to proceed.
3
// { dg-options -std=c++0x }
4
 
5
struct A
6
{
7
  A();
8
  A(A&);
9
};
10
 
11
struct B;
12
struct BP
13
{
14
  BP(const B&);
15
};
16
 
17
struct B
18
{
19
  B();
20
  B(B&&);
21
  B(const BP&);
22
};
23
 
24
// If B(B&&) suppresses the B copy constructor, then copying the B
25
// subobject of C should use B(const BP&).  But we ignore that constructor
26
// in order to break the cycle in 44909.  Perhaps the move ctor shouldn't
27
// suppress the copy ctor?
28
// As of DR 1082, it doesn't suppress it.
29
struct C: A, B { };             // { dg-error "use of deleted" }
30
 
31
C c;
32
C c2(c);                        // { dg-error "deleted" }

powered by: WebSVN 2.1.0

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