[LLVMbugs] [Bug 3459] New: addrof struct field not regarded as constant

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 2 05:21:20 PST 2009


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

           Summary: addrof struct field not regarded as constant
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu


the follwing code is rejected by clang -fsyntax-only:

struct bar {
        char n[1];
};

struct foo {
        char name[(int)&((struct bar *)0)->n];
};


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