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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
default2.C
blob
079ffab32a431fa67ad7ae7d15d5018acd15aa67
1
// { dg-do assemble }
2
// PRMS Id: 5921
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
}