diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-08-27 01:01:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-08-27 01:01:57 +0000 |
| commit | dfaf9f8c2f6becd11cbe50803c9a699bd0a5da3c (patch) | |
| tree | c0bcc0a725667f1cd6784eacdf8af45f93181027 /clang/Sema | |
| parent | bda69f80bcb7c675138713158df610e5214eac22 (diff) | |
| download | bcm5719-llvm-dfaf9f8c2f6becd11cbe50803c9a699bd0a5da3c.tar.gz bcm5719-llvm-dfaf9f8c2f6becd11cbe50803c9a699bd0a5da3c.zip | |
implement a fixme: __extension__ marker on decls in compound stmts.
llvm-svn: 41473
Diffstat (limited to 'clang/Sema')
| -rw-r--r-- | clang/Sema/SemaStmt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/Sema/SemaStmt.cpp b/clang/Sema/SemaStmt.cpp index da2d12bfaf1..0bd05d86aed 100644 --- a/clang/Sema/SemaStmt.cpp +++ b/clang/Sema/SemaStmt.cpp @@ -48,6 +48,10 @@ Sema::StmtResult Sema::ParseDeclStmt(DeclTy *decl) { Action::StmtResult Sema::ParseCompoundStmt(SourceLocation L, SourceLocation R, StmtTy **Elts, unsigned NumElts) { + // FIXME: ISO C90 forbids mixed declarations and code + // Note that __extension__ can be around a decl. + + return new CompoundStmt((Stmt**)Elts, NumElts); } |

