Community
Participate
Working Groups
Build Identifier: M20100909-0800 Calling IASTName.isDefinition() on the (last) IASTName of using declaration returns true instead of false. It is obvious that it should only return true when calling IASTName.isDeclaration() given by the name "using DECLARATION". Also the C++ Standard ( section 7.3.3 ) thinks so. Reproducible: Always Steps to Reproduce: 1. create emty source file containig the follwoing code: using A::b; 2. Call IASTName.isDefinition() on the IASTName instance "b".
Created attachment 193041 [details] testcase + fix Thanks Lukas!
Fixed in 8.0 > 20110412.
*** cdt cvs genie on behalf of mschorn *** Bug 342443: A using declaration is not a definition. [*] CPPASTUsingDeclaration.java 1.21 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTUsingDeclaration.java?root=Tools_Project&r1=1.20&r2=1.21 [*] AST2CPPTests.java 1.382 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.381&r2=1.382
*** cdt cvs genie on behalf of mschorn *** Bug 342443: Update existing testcase. [*] AST2CPPTests.java 1.383 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.382&r2=1.383
*** cdt cvs genie on behalf of mschorn *** Bug 342443: A using declaration is not a definition. [*] CPPSelectionTestsNoIndexer.java 1.32 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selection/CPPSelectionTestsNoIndexer.java?root=Tools_Project&r1=1.31&r2=1.32