repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem8.C
blob
588ac1fc50a2fc5caea7d9b194e188870787a3a3
1
// { dg-do compile }
2
// Origin: <marco dot franzen at bigfoot dot com>
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 (D::*fun)() const> int Get();
15
16
int main ()
17
{
18
Get<&B::I>(); // { dg-error "" }
19
Get<&D::I>(); // { dg-error "" }
20
}