Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314113

Summary: False "Syntax error" warning on initialization of a void* variable.
Product: [Tools] CDT Reporter: Vadym Krevs <vkrevs>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Mike Kucera <mikekucera>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

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.