OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
anon3.C
1
// Bug: g++ dies.
2
// Build don't link:
3
4
class cl {
5
public:
6
cl();
7
void set(void *, char *, int);
8
private:
9
union {
10
float vf;
11
struct ff {
12
void *ptr;
13
char *name;
14
int sz;
15
} *vff;
16
};
17
};
18
19
void cl::set(void *p, char *n, int sz)
20
{
21
vff = new ff; // This procude an internal compiler error.
22
vff->ptr = p;
23
vff->name = n;
24
vff->sz = sz;
25
}