1 // { dg-do run  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3 
main()4 int main()
5 {
6   typedef double I;
7 
8   struct S1 {
9     typedef char I;
10 
11     struct S2;
12   };
13 
14   struct S1::S2 {
15     typedef I J;
16   };
17 
18   return !(sizeof (S1::S2::J) == 1);
19 }
20