Bug #7774 2006-06-06 21:12

llubnek

Incorrectly handles const member functions

If a class contains a declaration like

int func() const;

'const' will be treated as a variable by code completion.

Observed in 666 build and earlier.

Category
Plugin::CodeCompletion
Group
 
Status
Closed
Close date
2006-08-12 11:30
Assigned to
 
mandrav 2006-08-12 11:30

Can't reproduce this. Either it is already fixed or you need to supply a small sample demonstrating the bug.

llubnek 2006-08-14 14:43

Create a new C++ console project.

In main.cpp type:

class Foo {

int bar() const;

};

Save the file (code completion isn't updated until you save).

On a line following }; type:

int Foo::bar() const

or

const int Foo::bar()

Code completion box will pop up after s in const.

Note that the code completion box shows up for const even in statements having nothing at all to do with class Foo.