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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [using16.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
template 
4
struct A
5
{
6
    typedef T type;
7
};
8
 
9
template 
10
struct B
11
{
12
    class type
13
    {
14
        type(); // { dg-error "private" }
15
    };
16
};
17
 
18
template 
19
struct C : A, B
20
{
21
    using typename B::type;
22
 
23
    void f()
24
    {
25
        type j; // { dg-error "context" }
26
    }
27
};
28
 
29
template class C; // { dg-message "required" }
30
 
31
template 
32
struct D
33
{
34
    typedef T type;
35
};
36
 
37
template 
38
class E : D
39
{
40
    using typename D::type; // { dg-message "previous" }
41
    using typename D::type; // { dg-error "redeclaration" }
42
};

powered by: WebSVN 2.1.0

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