Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314113 - False "Syntax error" warning on initialization of a void* variable.
Summary: False "Syntax error" warning on initialization of a void* variable.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Mike Kucera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 09:49 EDT by Vadym Krevs CLA
Modified: 2010-07-28 15:29 EDT (History)
1 user (show)

See Also:


Attachments
testcase + fix (1.82 KB, patch)
2010-05-25 05:01 EDT, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vadym Krevs CLA 2010-05-24 09:49:30 EDT
Build Identifier:  I20100520-1744

Create a C++ source file containing the following function:

void test()
{
    void *libHandle (0);
}

Code analysis highlights the "void *libHandle(0);" line and reports a syntax error on it.


Reproducible: Always
Comment 1 Elena Laskavaia CLA 2010-05-24 11:06:16 EDT
-> Parser
Comment 2 Markus Schorn CLA 2010-05-25 05:01:46 EDT
Created attachment 169788 [details]
testcase + fix
Comment 3 Markus Schorn CLA 2010-05-26 08:14:00 EDT
Fixed in 7.0 > 20100525.