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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to