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 214184 - C++11 override keyword not supported by Code Assistance
Summary: C++11 override keyword not supported by Code Assistance
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:49 UTC by mpusz
Modified: 2012-06-25 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project Properties dialog (38.02 KB, image/png)
2012-06-14 10:52 UTC, mpusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mpusz 2012-06-14 09:49:45 UTC
When a C++11 class overrides a base class method and does it explicitly with postfixing method signature with 'override' keyword, Code Assistance is confused and marks such line as an error with message "unexpected token: {".
Comment 1 Vladimir Voskresensky 2012-06-14 10:07:12 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:27: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
Comment 3 mpusz 2012-06-14 10:52:45 UTC
Created attachment 120829 [details]
Project Properties dialog
Comment 4 mpusz 2012-06-14 10:54:00 UTC
My project properties dialog looks much different than the one on the webpage.
Comment 5 nnnnnk 2012-06-14 18:15:08 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/489e15f51427
Comment 6 soldatov 2012-06-21 11:44:05 UTC
verified in trunk (NetBeans IDE Dev (Build 201206200001))
Comment 7 Vladimir Voskresensky 2012-06-22 11:34:25 UTC
fix is correct
Comment 8 soldatov 2012-06-25 09:03:48 UTC
verified in NetBeans IDE 7.2 RC1 (Build 201206242201)