I have declared a header file named ‘foo.h’ having a constructor and a function declared which returns int type data as shown below: class Foo() { public: Foo(); int foo_func(); }; When I try to implement the function in ‘foo.cpp’ I type int the return type of ‘foo_func’ then I get a auto completion box having an option for ‘foo_func'. But, when I select the option it gives ‘int int foo_func()’ instead of ‘int foo_func()’. Reproducible: Always Actual Results: #include <iostream> #include “foo.h” Foo::Foo() {} int int Foo::foo_func() { return 1; } Expected Results: int Foo::foo_func() { }
*** This bug has been marked as a duplicate of bug 371217 ***
*** This bug has been marked as a duplicate of bug 384710 ***