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/] [unify9.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 7 Jul 2005 
3
 
4
// Origin:Wolfgang Bangerth 
5
// PR 21799: deduction of cvqualifiers on member functions was wrong
6
 
7
template  void f (T &,       void (T::*)()      );
8
 
9
struct X {
10
    void g() const {}
11
};
12
 
13
const X *x;
14
 
15
int main () {
16
  f (*x, &X::g);  // {  dg-error "no matching function" }
17
}

powered by: WebSVN 2.1.0

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