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:
parent
622cd397ac
commit
e690350f00
1 changed files with 1 additions and 1 deletions
|
@ -1998,7 +1998,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
if (LT(1) != IToken.tEOC)
|
if (LT(1) != IToken.tEOC)
|
||||||
stmt= statement();
|
stmt= statement();
|
||||||
|
|
||||||
if (stmt instanceof IASTCaseStatement == false)
|
if (!(stmt instanceof IASTCaseStatement) && !(stmt instanceof IASTDefaultStatement))
|
||||||
return stmt;
|
return stmt;
|
||||||
|
|
||||||
// bug 105334, switch without compound statement
|
// bug 105334, switch without compound statement
|
||||||
|
|
Loading…
Add table
Reference in a new issue