[LLVMbugs] [Bug 4879] New: strange failure with VLAs and debug info

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Sep 3 21:29:47 PDT 2009


           Summary: strange failure with VLAs and debug info
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu

>From a user on IRC:
ddunbar at giles:tmp$ cat t.c
#include <stdio.h>
#include <string.h>

static void f0(const char * s, size_t len) {
    char buf2[len];
    memmove(buf2, s, len);
    fprintf(stderr, "%s\n", buf2);

int main() {
    const char a[] = "Hello, World!";
    f0(a, sizeof a);
    return 0;
ddunbar at giles:tmp$ clang -m64 t.c && ./a.out
Hello, World!
ddunbar at giles:tmp$ clang -g -m64 t.c && ./a.out
³.o"&Æ¡ ó¿_ÿ

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