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
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error33.C
blob
e3a7166edda718c2fb059c064889e0f81b5e02fb
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 "typedef name may not be a nested" } */
10
11
void bar(T); /* { dg-message "note: declared here" } */
12
13
void baz()
14
{
15
bar(&A::foo); /* { dg-error "too many arguments" } */
16
}