language: C++ 4.7.2 (gcc-4.7.2)
date: 864 days 5 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
int main() { }
 
struct  Vector
{
    union
    {
        float   elements[4];
        struct
        {
            float   x;
            float   y;
            float   z;
            float   w;
        };                  
    };
 
    float   length();
} ;
 
float Vector::length()
{
  return x;  // error: 'x' was not declared in this scope
}