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++.robertl
/
eb121.C
blob
456615d67c518059363e047af9fd25a5ece5c667
1
//Build don't link:
2
class A {
3
private:
4
int i1_;
5
public:
6
void f(int const i1 = 1); // ERROR - previous specification
7
};
8
9
void
10
A::f(int const i1 = 1)
11
{ // ERROR - duplicate default argument
12
i1_ = i1;
13
}
14
15
int
16
main()
17
{
18
A a;
19
a.f();
20
return 0;
21
}