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
c++: constantness of call to function pointer [PR111703]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error33.C
blob
61b0cc3f2dcc20e2cf804bc1a18ed3ac1187a06c
1
/* PR c++/37556 */
2
/* { dg-do compile } */
3
4
struct A
5
{
6
void foo();
7
};
8
9
typedef void (A::T)(); /* { dg-error "15:typedef name may not be a nested" } */
10
11
void bar(T);
12
13
void baz()
14
{
15
bar(&A::foo);
16
}