1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00

Bug 343479: Switch statement without compound statement.

This commit is contained in:
Markus Schorn 2011-04-21 08:11:55 +00:00
parent 622cd397ac
commit e690350f00

View file

@ -1998,7 +1998,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
if (LT(1) != IToken.tEOC)
stmt= statement();
if (stmt instanceof IASTCaseStatement == false)
if (!(stmt instanceof IASTCaseStatement) && !(stmt instanceof IASTDefaultStatement))
return stmt;
// bug 105334, switch without compound statement