call a member of a nested structure, ERROR does not have class type
<p>In main.C I am trying to access a nested structure member
(g.Fp1.d_status) and am getting the error:</p>

<p>'g.GridPt::Fp1' does not have class type</p>

<p>Below is my code. I can realy use some help. Thanks. 
I tried stuff like g.MarchingDirection::Fp1.d_status, 
g.&amp;MarchingDirection::Fp1.d_status, ... with no luck. </p>

<hr>

<pre><code>//Filename: main.C

#include "GridPt.h"

int main()
{   
    GridPt g;

    g.d_lstDistFn;
    g.Fp1.d_status; \\ERROR: 'g.GridPt::Fp1' does not have class type

    return 0;
}
</code></pre>

<hr>

<pre><code>//Filename: MarchingDirection.h

#ifndef included_MarchingDirection
#define included_MarchingDirection

struct MarchingDirection
{
    MarchingDirection(double FValue);   

    double d_F;              
    int d_inOut;             
    char d_status;          
};
#endif
</code></pre>

<hr>

<pre><code>//Filename: MarchingDirection.C

#include "MarchingDirection.h"

MarchingDirection::MarchingDirection(double FValue)  
: d_F(FValue),
  d_inOut(static_cast&lt;int&gt;(FValue)),
  d_status('d'){}
</code></pre>

<hr>

<pre><code>//Filename: Grid2D.h

#ifndef included_GridPt
#define included_GridPt

#include "MarchingDirection.h"
#include &lt;cstddef&gt;

struct GridPt
{   
    GridPt();    

    double d_x, d_y; 
    MarchingDirection Fp1(double F=1.0), Fm1(double F=-1.0);
    double d_lstDistFn;    
};

#endif 
</code></pre>

<hr>

<pre><code>//Filename: GridPt.C

#include "GridPt.h"

GridPt::GridPt() 
: d_lstDistFn(0.0){}
</code></pre>
