This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249463 - Code Assistance fails on auto type when used outside of namespace in C++11
Summary: Code Assistance fails on auto type when used outside of namespace in C++11
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.0.2
Hardware: PC Other
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-19 23:09 UTC by cinderblock
Modified: 2015-03-25 03:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cinderblock 2014-12-19 23:09:10 UTC
The following code shows four cases that should autocomplete after typing the '.'. One case however does not work when it should. This is C++11.

#include <string>

std::string someStr;

auto &test1 = someStr;

namespace foo {
 auto &test2 = someStr;
 std::string &test3 = someStr;
 
 void func() {
  test2. ; // Works
 }
}

void someFunc() {
 test1. ;      // Works
 foo::test2. ; // Doesn't work when it should
 foo::test3. ; // Works
}
Comment 1 petrk 2015-03-23 01:50:44 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/c37673d7642c
Comment 2 Quality Engineering 2015-03-25 03:21:16 UTC
Integrated into 'main-silver', will be available in build *201503250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c37673d7642c
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #249463 - Code Assistance fails on auto type when used outside of namespace in C++11