diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java index ea95fd76fbc..0c9f6032431 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java @@ -64,8 +64,9 @@ public class GCCErrorParser implements IErrorParser { /* Then check for the column */ int thirdColon= line.indexOf(':', secondColon + 1); if (thirdColon != -1) { + String columnNumber = line.substring(secondColon + 1, thirdColon); try { - col = Integer.parseInt(lineNumber); + col = Integer.parseInt(columnNumber); } catch (NumberFormatException e) { } }