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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49229
2
// { dg-options -std=c++0x }
3
 
4
extern void* enabler;
5
 
6
template
7
struct enable_if {};
8
 
9
template
10
struct enable_if {
11
  typedef T type;
12
};
13
 
14
template
15
struct and_;
16
 
17
template
18
struct and_ : B1 {};
19
 
20
template
21
struct is_same {
22
  static constexpr bool value = false;
23
};
24
 
25
template
26
struct is_same {
27
  static constexpr bool value = true;
28
};
29
 
30
template
31
struct S {
32
  template
33
    typename enable_if...>::value>::type*& = enabler // { dg-error "no type" }
34
  >
35
  S(U...){}
36
};
37
 
38
S s(0);                 // { dg-error "no match" }

powered by: WebSVN 2.1.0

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