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
* lto-streamer-out.c (output_function): Renumber PHIs.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
typedef2.C
blob
fdadeec63bf143b00ad6bb523c3dfff813703d20
1
// PR c++/46206
2
3
class Foo1
4
{
5
int u, v, w, x;
6
typedef struct Bar { } Bar;
7
virtual void foo(void) {
8
struct Bar bar;
9
}
10
};
11
12
class Foo2
13
{
14
int u, v, w;
15
typedef struct Bar { } Bar;
16
Bar bar;
17
virtual void foo(void) {
18
struct Bar bar;
19
}
20
};
21
22
class Foo3
23
{
24
int u, v, w;
25
typedef struct Bar { } Bar;
26
int Bar; // { dg-error "conflicts" }
27
virtual void foo(void) {
28
struct Bar bar;
29
}
30
};