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
History
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.
}
Thanks for the report.
@OllyDbg:
I have fixed this in my local copy already (it was quite easy). do you mind if I take over?
Ok, I change the "assigned" to you, and you can go ahead. Thanks.
Ok, I change the "assigned" to you, and you can go ahead. Thanks.
This bug is now fixed in HEAD.
Thank you for reporting it.