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++.jason
/
default2.C
blob
f50ee2f151b9ced3892209f0ee83fdb4821feb87
1
// PRMS Id: 5921
2
// Build don't link:
3
// Bug: default arguments containing constructor calls persist incorrectly.
4
5
class foo
6
{
7
public:
8
foo();
9
foo(int x);
10
public:
11
int iamamember;
12
};
13
14
class bar
15
{
16
public:
17
bar();
18
int memberfunction(int i, char *j, double k, foo foo1 = foo(0));
19
};
20
21
int
22
pain(bar *bar1)
23
{
24
return bar1->memberfunction(1, "x", 0.0);
25
}
26
27
int
28
pain2(bar *bar1)
29
{
30
return bar1->memberfunction(1, "x", 0.0);
31
}