Hello,
create a new console project with the latest code::blocks ( BTW, I've tried 2 times since the first time code::blocks crashed ). Replace the entire content of the cpp file generated with:
#include <stdlib.h>
class CA
{
public:
CA()
{
}
~CA()
{
}
virtual int functionCA()
;
typedef enum _EDIR
{
EDIR_L,
EDIR_F,
EDIR_R,
//////////////////////////////////////////////////////////////////////////
EDIR_NO
}
EDIR;
typedef struct _tTest
{
unsigned int a;
}
TTest;
struct _tRF
{
unsigned int EndFlag : 1;
}
m_RunningFlags;
protected:
class CB
{
public:
typedef struct _tTestB
{
unsigned int a;
}
TTestB;
CB() ;
~CB() ;
struct _tRF
{
unsigned int EndFlag : 1;
}
m_RunningFlags;
public:
virtual int FunctionCB0();
virtual int FunctionCB1();
virtual int FunctionCB2();
};
};
CA::CB::CB()
{
}
CA::CB::~CB()
{
}
int CA::CB::FunctionCB0()
{
return 0;
}
int CA::CB::FunctionCB1()
{
return 0;
}
int CA::CB::FunctionCB2()
{
return 0;
}
int CA::functionCA()
{
CB cb;
return cb.
}
also, keep new lines ( don't delete blank lines ). The line before the last ( "return cb." ) displays no popup.
I also have a project with nested class, but with some much more code in them. One of the nested class displays only a function in SYMBOLS BROWSER, however it has many of them, and browsing to declaration of it doesn't work.
The above code compiles ( GCC ) if you replace the last ( incomplete ) function with:
int CA::functionCA()
{
CB cb;
return cb.FunctionCB2();
}
int main()
{
CA ca;
ca.functionCA();
}
Running Ubuntu 7.04