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 258337 - Error on lambda within the definition of variables at the function arguments (关于函数实参处的lambda内定义变量的错误)
Summary: Error on lambda within the definition of variables at the function arguments ...
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-12 12:50 UTC by Rocon
Modified: 2016-07-14 14:08 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 Rocon 2016-03-12 12:50:08 UTC
我有一个函数
void func(void (*)()
{}
然后
int main()
{
func([]{int a;});

}
然后编辑器提示:无法解析的标识符。
但这在语法上是完全行得通的。
Comment 1 Alexander Simon 2016-03-13 13:59:08 UTC
Then editor hints: unresolved identifier.
But syntactically entirely workable.
(然后编辑器提示:无法解析的标识符。
但这在语法上是完全行得通的。)
Comment 2 petrk 2016-07-14 14:08:22 UTC
Your example is not compilable: missing ')' in declaration of func. Anyway I have checked it in development version and it works, so I will close this as worksforme. If you will find a case which doesn't work right now, please, reopen the bug.
Comment 3 petrk 2016-07-14 14:08:54 UTC
BTW, by 'works' I mean no unresolved identifiers