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


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

Reply via email to