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 256739 - IDE cannot find type of (*this) in initializer
Summary: IDE cannot find type of (*this) in initializer
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-23 11:46 UTC by petrk
Modified: 2015-12-21 18:53 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 petrk 2015-11-23 11:46:08 UTC
struct AAA {
  struct Iterator {
    AAA& operator*();
    Iterator& operator++();
    bool operator!=(const Iterator &other);
  };
  
  Iterator begin() const;
  
  Iterator end() const;
  
  void foo() const {
    for (const auto &var : *this) {
      var.foo(); // foo is unresolved
    }
  }
};
Comment 1 petrk 2015-11-30 18:25:24 UTC
304702:8f8e169a5194
Comment 2 Quality Engineering 2015-12-03 02:24:23 UTC
Integrated into 'main-silver', will be available in build *201512030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f2f0eea5a023
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #256739 - IDE cannot find type of (*this) in initializer
(transplanted from 8f8e169a519411fa16e3d67527c3c875c3092a8a)
Comment 3 soldatov 2015-12-21 18:53:09 UTC
Verified in NetBeans 8.1 with latest internal patches