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 225611

Summary: decltype, unable to resolve identifier
Product: cnd Reporter: TomCatFort
Component: Code CompletionAssignee: petrk
Status: RESOLVED FIXED    
Severity: normal CC: TomCatFort
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description TomCatFort 2013-01-31 20:30:18 UTC
Using C++11 in 7.3 RC1 this code compiles but the the code completion fails on the variable 'b':

  struct Foo
  {
      typedef int Bar;
  };
  
  int main(int, char **)
  {
      Foo f;
      decltype(f)::Bar b; //Bar is found, but unable to resolve identifier b.
      b = 11; //Unable to resolve identifier b.
      return 0;
  }

Using a class instead of a struct produces the exact same results.
Comment 1 petrk 2013-08-01 08:20:01 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/e552cd758544
Comment 2 Quality Engineering 2013-08-02 02:34:53 UTC
Integrated into 'main-silver', will be available in build *201308012300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e552cd758544
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Introduced dectype statements. Fixed #225611 - decltype, unable to resolve identifier