User forums > General (but related to Code::Blocks)

Code completion bugs ?

(1/1)

Yuki:
Hi
The Code::blocks IDE 's code completion is very good.but I find a small "bug".I just post the code here:

#include <iostream>

class AA
{
public :
    int a;
};
using namespace std;

int main()
{
    AA b;
    b.a; // The code completion lists the variable a when I type b.

/*
    AA a;
    a.a; // But in this time the code completion can't list the variables
    and after typing a.a . I type b. again and it can't list the variables
*/
   cout << "Hello world!" << endl;
   return 0;
}

Thanks .

Navigation

[0] Message Index

Go to full version