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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p9129.C
blob
c8d54853367a28cb640f0b1709d052f6eab0a559
1
// Build don't link:
2
// Special g++ Options: -ansi -pedantic-errors
3
// prms-id: 9129
4
5
class Foo {
6
public:
7
int DoSomething();
8
};
9
10
int (Foo::*pA)() = { &Foo::DoSomething };
11
int (Foo::*X[1])(int) = { { &Foo::DoSomething } }; // ERROR -
12
int (Foo::*Y[])(int) = { { &Foo::DoSomething, &Foo::DoSomething, 0 } }; // ERROR -