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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash21.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Origin: Debian GCC maintainers 
4
//         Wolfgang Bangerth 
5
 
6
// PR c++/16706: Dependent type calculation during access checking
7
 
8
template  struct B {
9
    B() throw() {}
10
    struct S { };
11
    static int i;
12
    typedef unsigned short int dummy;
13
};
14
 
15
template 
16
struct allocator: B<_Tp> {
17
    template struct rebind
18
    { typedef allocator<_Tp1> other; };
19
};
20
 
21
template
22
struct X {
23
    typename allocator::template rebind::other i;
24
    typedef int* dummy;
25
};
26
 
27
template  class A {
28
    typedef typename X >::dummy dummy;
29
    template  class XWrapper;
30
};
31
 
32
 
33
template 
34
template  struct A::XWrapper
35
{
36
    XWrapper() {}
37
    X > x;
38
};
39
 
40
template class A::XWrapper;

powered by: WebSVN 2.1.0

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