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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [ptrmem8.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// Origin: 
3
// PR c++/10126: Handle ptmf default conversions while matching a template
4
//  argument
5
 
6
struct B
7
{
8
  int I () const;
9
  int I ();
10
};
11
 
12
struct D : B {};
13
 
14
template  int Get(); // { dg-message "note" }
15
 
16
int main ()
17
{
18
  Get<&B::I>();   // { dg-error "not a valid template argument" "not valid" }
19
  // { dg-error "no match" "no match" { target *-*-* } 18 }
20
  // { dg-message "note" "note" { target *-*-* } 18 }
21
  Get<&D::I>();   // { dg-error "not a valid template argument" "not valid" }
22
  // { dg-error "no match" "no match" { target *-*-* } 21 }
23
  // { dg-message "note" "note" { target *-*-* } 21 }
24
}

powered by: WebSVN 2.1.0

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