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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [crash104.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
// PR c++/46046
2
 
3
template 
4
    struct foo
5
{
6
    template 
7
        struct type
8
    {};
9
 
10
    template 
11
        struct type<
12
            typename T::template some_type,
13
            V
14
        >
15
    {};
16
};
17
 
18
template 
19
    class bar
20
{};
21
 
22
int main()
23
{
24
  typedef foo > cont;
25
  cont::type obj; // { dg-error "cannot be defined" }
26
}

powered by: WebSVN 2.1.0

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