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 - Alternative function syntax
Summary: Alternative function syntax
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-14 09:52 UTC by mpusz
Modified: 2012-06-25 09:00 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 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)