Bug 262762 - KDevelop doesn't recognize using class; inside a function
Summary: KDevelop doesn't recognize using class; inside a function
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.1.0
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 16:03 UTC by Nikita Churaev
Modified: 2011-02-28 17:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
False error (9.07 KB, image/jpeg)
2011-01-10 16:05 UTC, Nikita Churaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Churaev 2011-01-10 16:03:52 UTC
Version:           4.1.0
OS:                Linux

Like:

void server::run()
{
  using boost::asio::ip::udp;
  host_.open(udp::endpoint(udp::v4(), 13666));
}

Reproducible: Always
Comment 1 Nikita Churaev 2011-01-10 16:05:49 UTC
Created attachment 55826 [details]
False error
Comment 2 David Nolden 2011-01-10 16:36:30 UTC
Please try minimizing your test-case so that it requires no #includes, is very small, and still exposes the problem.
Comment 3 Branan 2011-02-22 03:32:23 UTC
I just tested this on git master, it works as expected with this minimal test:

namespace TestNamespace {
  struct MyStruct {
  };
}

void func() {
    using TestNamespace::MyStruct;
    MyStruct s;
}
Comment 4 Milian Wolff 2011-02-28 17:53:30 UTC
ok, then lets close this if it works