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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [lookup6.C] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// { dg-do assemble  }
// { dg-do assemble  }
// Based on bug report by Miniussi 
// Based on bug report by Miniussi 
class t {};
class t {};
template  struct A { typedef T t; typedef T u; };
template  struct A { typedef T t; typedef T u; };
template  struct B : public A {
template  struct B : public A {
  // according to [temp.dep.type], `t' and `u' cannot be dependent types,
  // according to [temp.dep.type], `t' and `u' cannot be dependent types,
  // and so there's no reason to delay lookup to specialization time.
  // and so there's no reason to delay lookup to specialization time.
  void f(t p); // this is ::t [temp.dep]/3
  void f(t p); // this is ::t [temp.dep]/3
  void f(typename A::t p); // { dg-bogus "" } redefinition
  void f(typename A::t p); // { dg-bogus "" } redefinition
  void g(u p); // { dg-error "" } unknown type name
  void g(u p); // { dg-error "" } unknown type name
};
};
 
 

powered by: WebSVN 2.1.0

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