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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [overload/] [koenig1.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// PR c++/9336
// PR c++/9336
// Bug: The first, invalid call to f caused us to crash on the second,
// Bug: The first, invalid call to f caused us to crash on the second,
// valid call.
// valid call.
namespace N {
namespace N {
  template  void f (T);
  template  void f (T);
  struct A;
  struct A;
}
}
struct B;
struct B;
void g ()
void g ()
{
{
  B *bp;
  B *bp;
  N::A *ap;
  N::A *ap;
  f (bp);                       // { dg-error "not declared" }
  f (bp);                       // { dg-error "not declared" }
  f (ap);
  f (ap);
}
}
 
 

powered by: WebSVN 2.1.0

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