Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java
index 2b0793b547b..d917ffaaafd 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java
@@ -1620,16 +1620,16 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
} catch (BacktrackException e) {
if (acceptEmpty) {
backup(dtorMark1);
- return result.set(declspec1, null, null);
+ dtor1= null;
+ } else {
+ // try second variant, if possible
+ if (dtorMark2 == null)
+ throw e;
+
+ backup(dtorMark2);
+ dtor2= initDeclarator(declspec2, option);
+ return result.set(declspec2, dtor2, dtorMark2);
}
-
- // try second variant, if possible
- if (dtorMark2 == null)
- throw e;
-
- backup(dtorMark2);
- dtor2= initDeclarator(declspec2, option);
- return result.set(declspec2, dtor2, dtorMark2);
}
// first variant was a success. If possible, try second one.

Back to the top