[LLVMbugs] [Bug 1956] New: Sema+Codegen fail to use '((struct foo*)0)->m' as initializer

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 29 09:16:46 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=1956

           Summary: Sema+Codegen fail to use '((struct foo*)0)->m' as
                    initializer
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


The following code throws some errors in both the Sema and Codegen code:

struct x {
        struct x *m;
};

static const struct x a[] = {
        { (((char *) (&(((struct x*)((void *)0))->m))) - ((char *) 0)) }
};


-- 
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