[LLVMbugs] [Bug 7011] New: variable length arrays error on constant length array
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 2 00:12:23 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7011
Summary: variable length arrays error on constant length array
Product: clang
Version: 2.7
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
--- testcase ---
void f(int sz) {
const int sz_c = sz;
int i[sz_c];
}
--- output ---
pr.C:2:8: error: variable length arrays are not permitted in C++
int i[sz];
^
1 diagnostic generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list