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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [value4.C] - Blame information for rev 316

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/38233
2
 
3
template
4
  struct pair
5
  {
6
    _T1 first;
7
    _T2 second;
8
 
9
    // _GLIBCXX_RESOLVE_LIB_DEFECTS
10
    // 265.  std::pair::pair() effects overly restrictive
11
    /** The default constructor creates @c first and @c second using their
12
     *  respective default constructors.  */
13
    pair()
14
    : first(), second() { }
15
};
16
 
17
class a {
18
 public:
19
  a();
20
};
21
 
22
class b {
23
 public:
24
  // implicit default ctor
25
  bool operator<(const b& rhs) const;
26
 
27
 private:
28
  a a_val;
29
};
30
 
31
typedef pair my_pair;
32
 
33
void func() {
34
  my_pair x;
35
}

powered by: WebSVN 2.1.0

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