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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [other/] [crash-6.C] - Blame information for rev 301

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

Line No. Rev Author Line
1 301 jeremybenn
// Origin: PR c++/42634
2
// { dg-options "-g -std=c++0x" }
3
// { dg-do compile }
4
 
5
template T declval();
6
 
7
template struct is_constructible {
8
    template static decltype(T1(declval()...), char()) test();
9
    static const bool value = sizeof(test()) == 1;
10
};
11
template struct enable_if {
12
        typedef void type;
13
};
14
template struct pair {
15
    template
16
             class = typename enable_if::value>::type
17
             >
18
    pair(const T1&, U2&&) { }
19
};
20
struct string {
21
  string() : p(0) {}
22
  char* p;
23
};
24
 
25
struct Foo {
26
  string s;
27
  int i;
28
};
29
 
30
void f()
31
{
32
  pair(1, Foo());
33
}
34
 

powered by: WebSVN 2.1.0

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