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 258273 - Code completion failing for auto
Summary: Code completion failing for auto
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 13:24 UTC by Let_Me_Be
Modified: 2016-07-13 15:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the problem. (24.21 KB, image/png)
2016-03-07 13:24 UTC, Let_Me_Be
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Let_Me_Be 2016-03-07 13:24:17 UTC
Created attachment 158768 [details]
Screenshot of the problem.

Code completion for auto fails for boost.

See screenshot for demonstration of the issue.

Code:

#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>

int main(int argc, char** argv)
  {
    boost::property_tree::ptree pt;
    boost::property_tree::read_ini("test",pt);

    for (auto& section : pt)
      {
      for (auto& key : section.second)
        {

        }
      }
  return 0;
  }
Comment 1 petrk 2016-07-13 15:05:09 UTC
Simplified test case:

#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>

int main(int argc, char** argv) {
    boost::property_tree::ptree::iterator iter;
    iter->second; // second is unresolved
    return 0;
}