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 214185

Summary: Alternative function syntax
Product: cnd Reporter: mpusz
Component: -- Other --Assignee: nnnnnk <nnnnnk>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P1    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description mpusz 2012-06-14 09:52:30 UTC
C++11 alternative function syntax is not properly parsed by Code Assistance and an error "unexpected token: inline, unexpected token: &, unexpected token: ->" is printed.
Comment 1 Vladimir Voskresensky 2012-06-14 10:07:24 UTC
mpusz, have you specified in project properties C++11 standard?
As soon it is specified => it should work.
http://wiki.netbeans.org/NewAndNoteworthyNB72#C.2B.2B11_Standard_Support

If doesn't work, please, provide code snippet and reopen

Thanks,
Vladimir.
Comment 2 mpusz 2012-06-14 10:28:51 UTC
I set C++11 standard and with that most C++11 problems dissapeared. I am using gcc 4.8 from gcc-snapshot ubuntu repository. I was testing that on the last NB nightly build.

Here is a gist you can use to test that C++11 related problem:
https://gist.github.com/1337823

See utils.h file
Comment 3 nnnnnk 2012-06-15 10:02:18 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/2b910a15c216
Comment 4 soldatov 2012-06-21 09:19:01 UTC
no parser's errors in utils.h
verified in trunk (NetBeans IDE Dev (Build 201206200001))
Comment 5 Vladimir Voskresensky 2012-06-22 11:20:30 UTC
fix is correct.
Comment 6 soldatov 2012-06-25 09:00:50 UTC
verified in NetBeans IDE 7.2 RC1 (Build 201206242201)