diff options
author | Nathan Ridge | 2016-01-19 06:52:49 +0000 |
---|---|---|
committer | Nathan Ridge | 2016-01-19 08:14:28 +0000 |
commit | 9071fbcc8c3c7aff1882488a016b7e7026484d01 (patch) | |
tree | c50ddcd60610e02403958aec5469603fa195939f | |
parent | cee0c789b0e290c218f5ce98e2bd42b51df248c2 (diff) | |
download | org.eclipse.cdt-9071fbcc8c3c7aff1882488a016b7e7026484d01.tar.gz org.eclipse.cdt-9071fbcc8c3c7aff1882488a016b7e7026484d01.tar.xz org.eclipse.cdt-9071fbcc8c3c7aff1882488a016b7e7026484d01.zip |
Revert "Bug 84144 [Parser2] GCC: labels as values"
This reverts commit 6e7a509f9b7325ee070c47754cae46de91fa9c5b.
Change-Id: I39b8180c9b21245c8fee72cc8e2d0048eeb1c57a
2 files changed, 3 insertions, 14 deletions
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index 60e5a0bfbee..a70ccba28ee 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -7515,19 +7515,7 @@ public class AST2Tests extends AST2TestBase { public void testExpressionLabelReference_84144() throws Exception { parseAndCheckBindings(true); } - - // void f() - // { - // unsigned long long labelPtr; - // labelPtr = (unsigned long long) &&L; - // goto *labelPtr; - // L: - // return; - // } - public void testExpressionLabelReferenceCast_84144() throws Exception { - parseAndCheckBindings(true); - } - + // int version = 0; // int NextVersion() { // return __atomic_add_fetch(&version, 1, 5); 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 9ed31b0edcd..1514c919932 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 @@ -13,7 +13,7 @@ * Sergey Prigogin (Google) * Thomas Corbat (IFS) * Anders Dahlberg (Ericsson) - bug 84144 - * Justin You (Synopsys) - bug 84144 + * Alexander Nyßen (itemis AG) - bug 475908 *******************************************************************************/ package org.eclipse.cdt.internal.core.dom.parser; @@ -2562,6 +2562,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser { skipBrackets(IToken.tLPAREN, IToken.tRPAREN, IToken.tSEMI); switch (LTcatchEOF(1)) { case IToken.tAMPERASSIGN: + case IToken.tAND: case IToken.tARROW: case IToken.tARROWSTAR: case IToken.tASSIGN: |