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] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/23211
// { dg-do compile }

template<class T>
struct foo 
{
  typedef int jtype;
  struct bar 
  {
    using typename foo<T>::jtype; // { dg-error "not a base type" }
    using foo<T>::jtype; // { dg-error "not a base type" }
  };
};

template <class T>
struct A : T
{
    using T::i;
    using typename T::type;
};

struct B1 {};
template <class T> struct B2 {};

template <class T>
struct C : B1, B2<T>
{
    using B1::x; // { dg-error "no member" }
    using B2<T>::y;
    using typename B2<T>::type;
};

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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