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 246349 - Unresolved symbols inside lamda defined in constructor initializer list
Summary: Unresolved symbols inside lamda defined in constructor initializer list
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks: 244777
  Show dependency tree
 
Reported: 2014-08-08 12:50 UTC by petrk
Modified: 2014-09-18 13:25 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 2014-08-08 12:50:53 UTC
struct Holder {
    template <typename T>
    Holder(T &&t) {}
};

struct Wrapper {
    Holder holder;
    Wrapper() : holder([](){int unresoved; return unresoved;}) {};
};
Comment 1 petrk 2014-08-08 13:50:11 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/b9e97f214357
Comment 2 Quality Engineering 2014-08-09 05:02:58 UTC
Integrated into 'main-silver', will be available in build *201408090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b9e97f214357
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #246349 - Unresolved symbols inside lamda defined in constructor initializer list
Comment 3 soldatov 2014-09-18 12:58:22 UTC
In latest build I see such behavior:
- Copy&Paste code from comment 1
==> ok
- Close file
- Restart IDE
- Open file
==> unresolved identifier !!!
- Edit and save file
==> ok
- Close file
- Restart IDE
- Open file
==> unresolved identifier !!!
Comment 4 soldatov 2014-09-18 13:24:42 UTC
I created new issue 247273
Comment 5 soldatov 2014-09-18 13:25:43 UTC
Verified in NetBeans 8.0.1 patch1

-------------------------------------------------------------------------------
>Log Session: Thursday, September 18, 2014 2:47:00 PM MSK
>System Info: 
  Product Version         = NetBeans IDE 8.0.1 (Build 201409180010) (#ef6e99d0c0db)
  Operating System        = SunOS version 5.11 running on amd64
  Java; VM; Vendor        = 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_05-b13
  Java Home               = /usr/jdk/instances/jdk1.8.0/jre
  System Locale; Encoding = en (nb); UTF-8