OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.benjamin
/
13908.C
1
// { dg-do assemble }
2
// 981203 bkoz
3
// g++/13908
4
5
class chile
6
{
7
public:
8
protected:
9
private:
10
};
11
12
typedef void (chile::* pmf) ();
13
14
void* foo;
15
16
void bar (chile* pobj, pmf pmethod)
17
{
18
//-edg: expected member name
19
//-g++: taking address of bound pointer-to-member expression
20
foo = (void*) &(pobj->*pmethod); // { dg-error "" }
21
}