[cfe-commits] r39634 - /cfe/cfe/trunk/Sema/SemaDecl.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:46:28 PDT 2007
Author: clattner
Date: Wed Jul 11 11:46:28 2007
New Revision: 39634
URL: http://llvm.org/viewvc/llvm-project?rev=39634&view=rev
Log:
add another example
Modified:
cfe/cfe/trunk/Sema/SemaDecl.cpp
Modified: cfe/cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Sema/SemaDecl.cpp?rev=39634&r1=39633&r2=39634&view=diff
==============================================================================
--- cfe/cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/cfe/trunk/Sema/SemaDecl.cpp Wed Jul 11 11:46:28 2007
@@ -47,6 +47,9 @@
if (!Size->isIntegerConstantExpr(SizeVal, &Loc)) {
// FIXME: This emits the diagnostic to enforce 6.7.2.1p8, but the message
// is wrong. It is also wrong for static variables.
+ // FIXME: This is also wrong for:
+ // int sub1(int i, char *pi) { typedef int foo[i];
+ // struct bar {foo f1; int f2:3; int f3:4} *p; }
Diag(DeclLoc, diag::err_typecheck_illegal_vla, Size->getSourceRange());
return true;
}
More information about the cfe-commits
mailing list