| commit | 2c5208c59fcdae2e47fe8f98e6506bb098ea2005 | [log] [tgz] |
|---|---|---|
| author | Nuno Lopes <nunoplopes@sapo.pt> | Mon Sep 01 18:42:41 2008 +0000 |
| committer | Nuno Lopes <nunoplopes@sapo.pt> | Mon Sep 01 18:42:41 2008 +0000 |
| tree | 1abdf0099d67ce56edc7476c8428865c4e83923e | |
| parent | 9c64e6117623e5d46474880d18464c2640032ed1 [diff] [blame] |
fix one more this-is-not-a-constant error. test included llvm-svn: 55609
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index bf7c690..d93a5ec 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp
@@ -1269,6 +1269,9 @@ if (Init->getType()->isArrayType()) return false; + if (Init->getType()->isFunctionType()) + return false; + Diag(Init->getExprLoc(), diag::err_init_element_not_constant, Init->getSourceRange()); return true;