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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb121.C
blob
85dc43d5c446283409891e09d7a0cb2ed7b01c79
1
// { dg-do assemble }
2
class A {
3
private:
4
int i1_;
5
public:
6
void f(int const i1 = 1); // { dg-error "" } previous specification
7
};
8
9
void
10
A::f(int const i1 = 1)
11
{ // { dg-error "" } duplicate default argument
12
i1_ = i1;
13
}
14
15
int
16
main()
17
{
18
A a;
19
a.f();
20
return 0;
21
}