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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [overload9.C] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/32232
2
 
3
template  struct A;
4
template  struct B {};
5
template  A& operator<<(A&, const B&);
6
 
7
template 
8
struct A
9
{
10
  A& operator<<(A& (*)(A&)); // { dg-error "candidate" }
11
};
12
 
13
template  A& foo(A&);
14
extern A c;
15
 
16
int main () {
17
  c << (1, foo); // { dg-error "no match" }
18
}

powered by: WebSVN 2.1.0

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