OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [template/] [unify11.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin: PR c++/40684
3
// { dg-options "-std=c++0x" }
4
 
5
struct A
6
{
7
};
8
 
9
template 
10
typename S::A
11
foo (S c, T t, U u)
12
{
13
}
14
 
15
struct B
16
{
17
  struct C
18
  {
19
    template 
20
    C (U t)
21
    {
22
      A a;
23
      A b = foo (this, a, t); // { dg-error "no matching function" }
24
    }
25
  } c;
26
  B () : c (A ())
27
  {
28
  }
29
};
30
 
31
int
32
main ()
33
{
34
  B f;
35
}
36
 

powered by: WebSVN 2.1.0

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