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 - decltype, unable to resolve identifier
Summary: decltype, unable to resolve identifier
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-31 20:30 UTC by TomCatFort
Modified: 2013-08-02 02:34 UTC (History)
1 user (show)

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 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