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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49058
2
// This error is not subject to SFINAE because it doesn't happen in the
3
// deduction context.
4
// { dg-options -std=c++0x }
5
// { dg-prune-output "note" }
6
 
7
template T val();
8
 
9
struct F1
10
{
11
    void operator()();
12
};
13
 
14
template
15
struct Bind
16
{
17
    template
18
      = decltype( val()( ) )>
19
    R f();
20
 
21
    template
22
      = decltype( val()( ) )>
23
    R f() const;                // { dg-error "no match" }
24
};
25
 
26
int main()
27
{
28
  Bind b;
29
}

powered by: WebSVN 2.1.0

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