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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/44909
2
// { dg-options -std=c++0x }
3
// Declaring A>'s copy ctor means choosing a ctor to initialize D,
4
// which means choosing a ctor for C>, which meant considering
5
// C(const B&) which means choosing a ctor for B, which means choosing
6
// a ctor for A>.  Cycle.
7
 
8
template
9
struct A
10
{
11
  T t;
12
};
13
 
14
template 
15
struct B
16
{
17
  typename T::U u;
18
};
19
 
20
template 
21
struct C
22
{
23
  C(const T&);
24
};
25
 
26
template 
27
struct D
28
{
29
  C > v;
30
};
31
 
32
struct E {
33
  typedef A > U;
34
};
35
 
36
extern A > a;
37
A > a2(a);

powered by: WebSVN 2.1.0

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