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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/23211
2
// { dg-do compile }
3
 
4
template
5
struct foo
6
{
7
  typedef int jtype;
8
  struct bar
9
  {
10
    using typename foo::jtype; // { dg-error "not a base type" }
11
    using foo::jtype; // { dg-error "not a base type" }
12
  };
13
};
14
 
15
template 
16
struct A : T
17
{
18
    using T::i;
19
    using typename T::type;
20
};
21
 
22
struct B1 {};
23
template  struct B2 {};
24
 
25
template 
26
struct C : B1, B2
27
{
28
    using B1::x; // { dg-error "no member" }
29
    using B2::y;
30
    using typename B2::type;
31
};

powered by: WebSVN 2.1.0

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