repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
expr
/
bound-mem-fun.C
blob
b31bba13cf3f7751e3d02324a786fce311a749da
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin PR c++/38228
3
// { dg-do compile }
4
5
struct A
6
{
7
A ();
8
template<typename T> A(T);
9
};
10
11
struct B
12
{
13
int foo();
14
};
15
16
A a = B().*(&B::foo); // { dg-error "invalid use of non-static member function" }
17
18