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
* c-common.c (catenate_strings): New.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
anon3.C
blob
d2964f5aaf4d8483f12d8e3d87cbc7149b5abc7b
1
// { dg-do assemble }
2
// Bug: g++ dies.
3
4
class cl {
5
public:
6
cl();
7
void set(void *, char *, int);
8
private:
9
union {
10
float vf;
11
struct ff { // { dg-error "" } nested class in anonymous union
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
}