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 257915 - Unresolved C11 _Atomic
Summary: Unresolved C11 _Atomic
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-10 08:44 UTC by soldatov
Modified: 2016-04-20 09:28 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 soldatov 2016-02-10 08:44:18 UTC
Set "C Compiler|C Standard"=C11

#include <stdatomic.h>

int main(int argc, char** argv) {
    atomic_int *p0; // ok
    _Atomic const int * p1; // unresolved p1
    _Atomic(int)* p2; // unresolved p2
    return (0);
}
Comment 1 soldatov 2016-02-10 08:47:09 UTC
topic on forum - http://forums.netbeans.org/viewtopic.php?t=65268
Comment 2 Alexander Simon 2016-02-10 09:15:36 UTC
Some other keywords are missing.
See http://en.cppreference.com/w/c/keyword
Comment 3 Alexander Simon 2016-02-10 13:44:55 UTC
Full list of unsupported keywords is:
asm concept fortran requires _Alignas _Alignof _Atomic _Generic _Pragma _Static_assert _Thread_local

See test CppLexerBatchTestCase.
Comment 4 Alexander Simon 2016-02-11 15:13:37 UTC
partly fixed in change set:
http://hg.netbeans.org/cnd-main/rev/fe8e8eb67ab0
Comment 5 Quality Engineering 2016-02-13 03:17:09 UTC
Integrated into 'main-silver', will be available in build *201602130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fe8e8eb67ab0
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #257915 Unresolved C11 _Atomic
- fixed _Alignas, _Alignof, _Static_assert and _Thread_local
- partly fixed "_Atomic type" ("_Atomic(type)" still an issue)
- not fixed _Generic
Comment 6 Alexander Simon 2016-02-26 08:28:05 UTC
additional fix NPE:
http://hg.netbeans.org/cnd-main/rev/50337b20b1a2
Comment 7 petrk 2016-03-11 11:39:35 UTC
Remaining issues are extracted into bug 258327
Comment 8 ilia 2016-03-17 10:40:26 UTC
Additional fixes:
  295126 9c28236500db | alexvsimon     | 2016-02-10 16:38 +0300 | unit test: restore deleted by mistake test
  295125 bd367283a626 | alexvsimon     | 2016-02-10 16:35 +0300 | unit test: make keywords test clear and add unsupported keywords (currently commented)
Comment 9 Vladimir Kvashin 2016-04-15 16:59:52 UTC
verified in builds on enum server
Comment 10 soldatov 2016-04-20 09:28:22 UTC
Verified in NetBeans 8.1 with latest updates.

latest scenario moved to issue 258327