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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/9336
2
// Bug: The first, invalid call to f caused us to crash on the second,
3
// valid call.
4
 
5
namespace N {
6
  template  void f (T); // { dg-message "N::f" }
7
  struct A;
8
}
9
 
10
struct B;
11
 
12
void g ()
13
{
14
  B *bp;
15
  N::A *ap;
16
  f (bp);                       // { dg-error "not declared" }
17
  // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 16 }
18
  f (ap);
19
}

powered by: WebSVN 2.1.0

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