| Summary: | False "Syntax error" warning on initialization of a void* variable. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vadym Krevs <vkrevs> | ||||
| Component: | cdt-parser | Assignee: | 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: |
|
||||||
-> Parser Created attachment 169788 [details]
testcase + fix
Fixed in 7.0 > 20100525. *** cdt cvs genie on behalf of mschorn *** Bug 314113: False syntax error. [*] AST2CPPTests.java 1.344 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java?root=Tools_Project&r1=1.343&r2=1.344 [*] GNUCPPSourceParser.java 1.231 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java?root=Tools_Project&r1=1.230&r2=1.231 |
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