Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2008-04-04 15:12:22 +0000
committerMike Kucera2008-04-04 15:12:22 +0000
commit5297a903b036d28bc5cef4227a0013dab1793093 (patch)
treee4ab3dc274f594b9b166781099dbe6abf40337e8 /core/org.eclipse.cdt.core/parser
parent1fd0bf48d8f1d5361cc77dabd6f6c1baf050b8eb (diff)
downloadorg.eclipse.cdt-5297a903b036d28bc5cef4227a0013dab1793093.tar.gz
org.eclipse.cdt-5297a903b036d28bc5cef4227a0013dab1793093.tar.xz
org.eclipse.cdt-5297a903b036d28bc5cef4227a0013dab1793093.zip
dummy name nodes no longer counted as problems when resolving ambiguous declarator
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java
index 1d4db0f52e6..1935929cbfa 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java
@@ -163,8 +163,8 @@ public class CPPASTQualifiedName extends CPPASTNode implements
IASTName[] ns = getNames();
for (int i = 0; i < ns.length; i++) {
if (i == names.length - 1) {
- if (names[i].toCharArray().length > 0
- && !names[i].accept(action))
+ // pointer-to-member qualified names have a dummy name as the last part of the name, don't visit it
+ if (names[i].toCharArray().length > 0 && !names[i].accept(action))
return false;
} else if (!names[i].accept(action))
return false;

Back to the top