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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [implicit-trivial1.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/46807
2
// { dg-options -std=c++98 }
3
// In C++98/03, B::B(const B&) is trivial because A::A(const A&) is trivial,
4
// even though doing overload resolution would mean calling the template
5
// constructor.  In C++0x, we do overload resolution to determine triviality.
6
 
7
struct A
8
{
9
  A() {}
10
private:
11
  template  A(T&);
12
};
13
 
14
struct B
15
{
16
  mutable A a;
17
};
18
 
19
int main()
20
{
21
  B b;
22
  B b2(b);
23
}

powered by: WebSVN 2.1.0

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