[LLVMbugs] [Bug 8567] New: Incorrect code for VLA pointers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 8 10:35:32 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8567
Summary: Incorrect code for VLA pointers
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jed at 59a2.org
CC: llvmbugs at cs.uiuc.edu
Problem is for pointer of form
double (*p)[n][5];
where n is a runtime parameter. Test case attached.
$ gcc -Wall -std=c99 vla-bug.c && ./a.out
test_static: size 15 diff 15
test_var: size 15 diff 15
$ clang -Wall -std=c99 vla-bug.c && ./a.out
test_static: size 15 diff 15
test_var: size 15 diff 75
--
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