]> granicus.if.org Git - clang/commit
Fix the location we emit the "not a constant" error for this:
authorChris Lattner <sabre@nondot.org>
Tue, 18 Dec 2007 07:15:40 +0000 (07:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Dec 2007 07:15:40 +0000 (07:15 +0000)
commit65383479cb2caf0f136f58fecdbdbaf9c497b7a1
treeb21f67f9c2ab406e1c8f2eab8e1d6014c210e0ce
parentd52a4578144ab2887912e52eabec58a857a44adb
Fix the location we emit the "not a constant" error for this:

int foo() {
  typedef int x[foo()];
  static int y = sizeof(x);
}

previously we'd emit it on the typedef, which made not sense at all.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45154 91177308-0d34-0410-b5e6-96231b3b80d8
AST/Expr.cpp
test/Sema/vla.c [new file with mode: 0644]