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
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
typedef8.C
blob
2d3507acc98f9481c849db9a273d449dca364a22
1
// { dg-do assemble }
2
//
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 17 Aug 2000 <nathan@codesourcery.com>
5
6
// bug 39. We'd generated bogus errors when using a typedef of a nested class.
7
8
struct X1
9
{
10
typedef struct {
11
} MyStruct1;
12
typedef struct M2 {
13
} MyStruct2;
14
};
15
16
X1::MyStruct1 foo()
17
{
18
X1::MyStruct1 m1;
19
return m1;
20
}
21
22
X1::MyStruct2 baz()
23
{
24
X1::MyStruct2 m1;
25
return m1;
26
}