[LLVMbugs] [Bug 2103] New: clang doesn't reject address of bitfield or vector element

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 26 22:06:57 PST 2008


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

           Summary: clang doesn't reject address of bitfield or vector
                    element
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org
                CC: llvmbugs at cs.uiuc.edu, sharparrow1 at yahoo.com,
                    snaroff at apple.com, andersca at mac.com


clang doesn't reject:

struct x { 
  int y : 4;
};

void foo(struct x *P) {
  &P->y;
}

or:

void a() {
  typedef float v4sf __attribute__ ((vector_size (16)));
  static v4sf q;
  float* r = &q[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