Bug #18711 2012-08-25 16:15

agetian

"throw" specifier causes code completion not to work

Code completion won't fire (in C++) if I try to define a variable inside a function that has a "throw" specifier in its definition. For instance:

1) This works fine (no throw specifier) - code completion fires OK for "m":

std::string MyClass::TestCase()

{

std::string m;

m.

}

2) This doesn't work (throw specifier added) - code completion does not fire for "m":

std::string MyClass::TestCase() throw(std::exception)

{

std::string m;

m.

}

Code::Blocks SVN 8150

Windows Vista 32bit

GNU GCC v4.7.1 (Mingw)

Category
Plugin::CodeCompletion
Group
Platform:All
Status
Closed
Close date
2012-11-26 13:09
Assigned to
mortenmacfly
agetian 2012-08-26 05:35

Another case which may be related:

1) This works (no "const" in parameter specification):

TestClass::TestClass(TestClass& rhs)

{

rhs.

}

2) This does not work ("const" added to parameter specification, code completion no longer fires for rhs):

TestClass::TestClass(const TestClass& rhs)

{

rhs.

}

ollydbg 2012-08-26 14:13

Thanks for the report.

mortenmacfly 2012-11-26 11:54

@OllyDbg:

I have fixed this in my local copy already (it was quite easy). do you mind if I take over?

ollydbg 2012-11-26 12:01

Ok, I change the "assigned" to you, and you can go ahead. Thanks.

ollydbg 2012-11-26 12:09

Ok, I change the "assigned" to you, and you can go ahead. Thanks.

mortenmacfly 2012-11-26 13:09

This bug is now fixed in HEAD.

Thank you for reporting it.