Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/expr/pmf-1.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // C++ PR/2521 | |
2 // Copyright (C) 2002 Free Software Foundation | |
3 // Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> | |
4 | |
5 // { dg-do compile } | |
6 | |
7 struct A | |
8 { | |
9 void f(); | |
10 void foo(void (A::*)(int)); // { dg-message "void A::foo|no known conversion" } | |
11 template<typename T> | |
12 void g(T); | |
13 void h() | |
14 { | |
15 void (A::*p)() = &A::f; | |
16 void (A::*q)() = &(A::f); // { dg-error "parenthesized" } | |
17 foo(&g<int>); // { dg-error "no matching" } | |
18 } | |
19 }; |